Changes between Version 19 and Version 20 of NetServTutorialInstruction


Ignore:
Timestamp:
03/09/12 19:29:22 (8 years ago)
Author:
jae@cs.columbia.edu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NetServTutorialInstruction

    v19 v20  
    228228== (Optional) Process Layer 2 frames in !NetServ ==
    229229
    230 1. Rebuild !NetServ for layer 2 frame processing.
     2301. Rebuild !NetServ for layer 2 frame processing and run it.
    231231
    232232{{{
    233233cd /netserv-root/core/linux
     234sudo su
     235.  setenv-i386-ubuntu
    234236NETSERV_TRANSPORT=tap make all
     237./run-controller.sh  conf-default.xml
    235238}}}
    236239
    2372402. Set up the newly created TAP interface.
    238241
    239 {{{
    240 ip link set netserv101 up
    241 ip add 10.0.0.1/24 dev netserv101
     242  Open a new terminal window and type the following:
     243
     244{{{
     245sudo ip link set netserv101 up
     246sudo ip add 10.0.0.1/24 dev netserv101
    242247}}}
    243248
     
    262267}}}
    263268
    264 6. Ping a fake address in the TAP subnet.
     2696. Ping a fake IP host address in the TAP subnet.
    265270
    266271{{{
     
    268273}}}
    269274
     275  Take a look at the !NetServ terminal window, you will see ARP requests being intercepted.
     276  You can stop the ping by pressing <CTRL>+C in its terminal window.
     277
    2702787. Set up a manual ARP table entry for the fake address.
    271279
    272280{{{
    273 arp -s 10.0.0.99 01:02:03:04:05:06
    274 }}}
    275 
    276 8. Watch UDP echo replying to the ping request.
     281sudo arp -s 10.0.0.99 01:02:03:04:05:06
     282}}}
     283
     2848. Ping again the fake IP host address.
     285
     286{{{
     287ping 10.0.0.99
     288}}}
     289
     290  Now you can see that !NetServ is replying to your ping requests!
    277291
    2782929. Remove UDP echo and install it again.
    279293
     294  By removing the UDP echo module the ping will stop receiving replies.
     295
    280296== Please take a quick survey ==
    281297