Changes between Version 19 and Version 20 of NetServTutorialInstruction
- Timestamp:
- 03/09/12 19:29:22 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NetServTutorialInstruction
v19 v20 228 228 == (Optional) Process Layer 2 frames in !NetServ == 229 229 230 1. Rebuild !NetServ for layer 2 frame processing .230 1. Rebuild !NetServ for layer 2 frame processing and run it. 231 231 232 232 {{{ 233 233 cd /netserv-root/core/linux 234 sudo su 235 . setenv-i386-ubuntu 234 236 NETSERV_TRANSPORT=tap make all 237 ./run-controller.sh conf-default.xml 235 238 }}} 236 239 237 240 2. Set up the newly created TAP interface. 238 241 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 {{{ 245 sudo ip link set netserv101 up 246 sudo ip add 10.0.0.1/24 dev netserv101 242 247 }}} 243 248 … … 262 267 }}} 263 268 264 6. Ping a fake address in the TAP subnet.269 6. Ping a fake IP host address in the TAP subnet. 265 270 266 271 {{{ … … 268 273 }}} 269 274 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 270 278 7. Set up a manual ARP table entry for the fake address. 271 279 272 280 {{{ 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. 281 sudo arp -s 10.0.0.99 01:02:03:04:05:06 282 }}} 283 284 8. Ping again the fake IP host address. 285 286 {{{ 287 ping 10.0.0.99 288 }}} 289 290 Now you can see that !NetServ is replying to your ping requests! 277 291 278 292 9. Remove UDP echo and install it again. 279 293 294 By removing the UDP echo module the ping will stop receiving replies. 295 280 296 == Please take a quick survey == 281 297