Changes between Version 54 and Version 55 of NikySandbox/TridentCommTut


Ignore:
Timestamp:
06/08/12 07:34:40 (7 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NikySandbox/TridentCommTut

    v54 v55  
    270270The output should look like :
    271271{{{
    272 [inki@r2 ]$ /sbin/ifconfig
    273 VLAN02    Link encap:UNSPEC  HWaddr 9B-62-24-9B-6F-00-F4-EF-00-00-00-00-00-00-00-00 
    274           inet addr:192.168.5.2  P-t-P:192.168.5.2  Mask:255.255.255.0
    275           UP POINTOPOINT RUNNING NOARP  MTU:1476  Metric:1
    276           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    277           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
     272[uncusr20@r2 ~]$ /sbin/ifconfig
     273eth999    Link encap:Ethernet  HWaddr 00:00:AC:13:6D:01 
     274          inet addr:172.19.109.1  Bcast:172.31.255.255  Mask:255.240.0.0
     275          inet6 addr: fe80::200:acff:fe13:6d01/64 Scope:Link
     276          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
     277          RX packets:32835 errors:0 dropped:0 overruns:0 frame:0
     278          TX packets:14403 errors:0 dropped:0 overruns:0 carrier:0
    278279          collisions:0 txqueuelen:0
    279           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
    280 
    281 eth0      Link encap:Ethernet  HWaddr 00:02:B3:23:6D:12 
    282           inet addr:155.98.36.155  Bcast:155.98.39.255  Mask:255.255.252.0
    283           inet6 addr: fe80::202:b3ff:fe23:6d12/64 Scope:Link
     280          RX bytes:47254606 (45.0 MiB)  TX bytes:743825 (726.3 KiB)
     281
     282gre3      Link encap:Ethernet  HWaddr 00:18:51:B5:7A:64 
     283          inet addr:10.20.3.1  Bcast:10.20.3.255  Mask:255.255.255.0
     284          inet6 addr: fe80::218:51ff:feb5:7a64/64 Scope:Link
    284285          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
    285           RX packets:9593 errors:0 dropped:0 overruns:0 frame:0
    286           TX packets:1119 errors:0 dropped:0 overruns:0 carrier:0
    287           collisions:0 txqueuelen:1000
    288           RX bytes:1823255 (1.7 MiB)  TX bytes:118901 (116.1 KiB)
    289 
    290 eth1      Link encap:Ethernet  HWaddr 00:02:B3:23:6D:13 
    291           inet addr:10.10.2.2  Bcast:10.10.2.255  Mask:255.255.255.0
    292           inet6 addr: fe80::202:b3ff:fe23:6d13/64 Scope:Link
    293           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
    294           RX packets:82 errors:0 dropped:0 overruns:0 frame:0
    295           TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
    296           collisions:0 txqueuelen:1000
    297           RX bytes:7542 (7.3 KiB)  TX bytes:4632 (4.5 KiB)
    298 
    299 eth2      Link encap:Ethernet  HWaddr 00:03:47:94:C5:7B 
    300           inet addr:10.10.4.1  Bcast:10.10.4.255  Mask:255.255.255.0
    301           inet6 addr: fe80::203:47ff:fe94:c57b/64 Scope:Link
    302           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
    303           RX packets:32 errors:0 dropped:0 overruns:0 frame:0
    304           TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
    305           collisions:0 txqueuelen:1000
    306           RX bytes:2794 (2.7 KiB)  TX bytes:3338 (3.2 KiB)
     286          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
     287          TX packets:409 errors:0 dropped:0 overruns:0 carrier:0
     288          collisions:0 txqueuelen:0
     289          RX bytes:296 (296.0 b)  TX bytes:26384 (25.7 KiB)
    307290
    308291lo        Link encap:Local Loopback 
     
    310293          inet6 addr: ::1/128 Scope:Host
    311294          UP LOOPBACK RUNNING  MTU:16436  Metric:1
    312           RX packets:57 errors:0 dropped:0 overruns:0 frame:0
    313           TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
     295          RX packets:3 errors:0 dropped:0 overruns:0 frame:0
     296          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
    314297          collisions:0 txqueuelen:0
    315           RX bytes:4913 (4.7 KiB)  TX bytes:4913 (4.7 KiB)
    316 }}}
    317 
    318 The two interface that are connected to source and PC-WashDC are eth1 and eth2 respectively. To bring them down run :
    319 {{{
    320 sudo /sbin/ifconfig eth1 0.0.0.0
    321 
    322 sudo /sbin/ifconfig eth2 0.0.0.0
     298          RX bytes:336 (336.0 b)  TX bytes:336 (336.0 b)
     299
     300mv1.1     Link encap:Ethernet  HWaddr 02:00:9B:48:3E:20 
     301          inet addr:10.20.1.2  Bcast:10.20.1.255  Mask:255.255.255.0
     302          inet6 addr: fe80::9bff:fe48:3e20/64 Scope:Link
     303          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
     304          RX packets:1022 errors:0 dropped:0 overruns:0 frame:0
     305          TX packets:223 errors:0 dropped:0 overruns:0 carrier:0
     306          collisions:0 txqueuelen:0
     307          RX bytes:80442 (78.5 KiB)  TX bytes:22537 (22.0 KiB)
     308
     309mv1.2     Link encap:Ethernet  HWaddr 02:00:AE:44:FF:E4 
     310          inet addr:192.168.44.70  Bcast:192.168.255.255  Mask:255.255.0.0
     311          inet6 addr: fe80::aeff:fe44:ffe4/64 Scope:Link
     312          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
     313          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
     314          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
     315          collisions:0 txqueuelen:0
     316          RX bytes:866 (866.0 b)  TX bytes:1406 (1.3 KiB)
     317}}}
     318
     319The two interface that are connected to source and PC-WashDC are mv1.1 and mv1.2 respectively. To bring them down run :
     320{{{
     321sudo /sbin/ifconfig mv1.1 0.0.0.0
     322
     323sudo /sbin/ifconfig mv1.2 0.0.0.0
    323324}}}
    324325
     
    328329Run :
    329330{{{
    330 cd pingPlus
    331 sudo ./pingPlus <MAC_ADDRESS> <INTERFACE_NAME> 12345
     331sudo /local/tutorial/pingPlus/pingPlus <MAC_ADDRESS> <INTERFACE_NAME> 12345
    332332}}}
    333333
    334334The result should look like :
    335335{{{
    336 [inki@source ~/pingPlus]$ sudo ./pingPlus 00:24:E8:7A:97:DD eth419 12345
    337 audit_log_user_command(): Connection refused
    338 RQ:'9561+2063' to 0:24:e8:7a:97:dd.
    339 RL:9561+2063=11624 from 0:24:e8:7a:97:dd.
     336[uncusr20@source ~]$ sudo /local/tutorial/pingPlus/pingPlus 02:00:9B:48:3E:20 mv1.1 12345
     337RQ:'5582+2067' to 2:0:9b:48:3e:20.
     338RQ:5582+2067 from 2:0:3e:15:6c:ab.
    340339}}}
    341340
     
    356355sudo /usr/local/bin/click switch.click
    357356}}}
    358 The MAC address of PC-WashDC is 00:02:B3:23:78:E5
    359 
    360 Then from `source`, try to ping PCRemote
    361 {{{
    362 [inki@source /local/tutorial/pingPlus]$ sudo ./pingPlus 00:24:E8:77:89:B6 <INTERFACE_NAME> 12345
     357The MAC address of PC-WashDC is 00:1B:21:3A:D9:C9
     358
     359Then from `source`, try to ping PC-WashDC
     360{{{
     361[inki@source /local/tutorial/pingPlus]$ sudo ./pingPlus 00:1B:21:3A:D9:C9 <INTERFACE_NAME> 12345
    363362}}}
    364363
    365364The output should look like :
    366365{{{
    367 [inki@source ~/pingPlus]$ sudo ./pingPlus 00:02:B3:23:78:E5 eth419 12345
     366[inki@source ~/pingPlus]$ sudo ./pingPlus 00:1B:21:3A:D9:C9 eth419 12345
    368367audit_log_user_command(): Connection refused
    369368RQ:'7124+8793' to 0:24:e8:77:89:b6.