Changes between Version 6 and Version 7 of NikySandbox/TridentCommTut


Ignore:
Timestamp:
04/18/12 17:22:42 (12 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NikySandbox/TridentCommTut

    v6 v7  
    133133The script will return the actual command that you would need to use for logging in.
    134134
    135 For gpousr21 the script would return :
    136 
    137 {{{
    138 ================================================================================
    139 Aggregate [https://myplc.stanford.edu:12346] has a PlanetLab sliver.
    140 of-planet1.stanford.edu's pl_boot_state is:
    141   boot
    142 Login using:
    143   xterm -e ssh -i ./ssh/geni_key pgenigpolabbbncom_gposlice21@bain.gpolab.bbn.com &
    144 
    145 ================================================================================
    146 }}}
    147 
    148 '''Note''': If your hosts are in Georgia Tech you would need to use the
    149 connection through ops.
    150  
    151 To do that run
    152 {{{
    153 xterm -e ssh -i ssh/geni_key -F ssh/config pgenigpolabbbncom_gposlice##@<hostname> &
    154 }}}
    155 
    156 For gpousr21 that would be :
    157 {{{
    158 xterm -e ssh -i ssh/geni_key -F ssh/config pgenigpolabbbncom_gposlice21@bain &
    159 }}}
    160 
    161135= 2. Sending IP traffic =
    162 == 2a. Login to VM@Utah ==
    163 == 2b. Ping VM@Kentucky ==
    164 == 2c. Enable IP forwarding at PC@Utah ==
    165  
     136We will start testing our setup by sending IP traffic between our hosts.
     137
     138== 2a. Login to PCUT ==
     139First login to the PCUT host. To do that go the Flack page and press the (i) button on the PCUT box.
     140On the screen that will come up press the 'SSH' button.
     141
     142== 2b. Ping VMUT ==
     143After you login to the PCUT, try to ping VMUT. To figure out what is the IP address of VMUT, go back to Flack
     144and press on the (i) of the link between VMUT and PCUT. The information on that page should tell you what is the IP
     145of that node. Run :
     146{{{
     147ping <VMUT_IP>
     148}}}
     149
     150An example output should look like :
     151{{{
     152[[inki@pcut ~]$ ping 10.10.2.1 -c 5
     153PING 10.10.2.1 (10.10.2.1) 56(84) bytes of data.
     15464 bytes from 10.10.2.1: icmp_seq=1 ttl=64 time=1.95 ms
     15564 bytes from 10.10.2.1: icmp_seq=2 ttl=64 time=2.27 ms
     15664 bytes from 10.10.2.1: icmp_seq=3 ttl=64 time=2.04 ms
     15764 bytes from 10.10.2.1: icmp_seq=4 ttl=64 time=1.95 ms
     15864 bytes from 10.10.2.1: icmp_seq=5 ttl=64 time=1.72 ms
     159
     160--- 10.10.2.1 ping statistics ---
     1615 packets transmitted, 5 received, 0% packet loss, time 4005ms
     162rtt min/avg/max/mdev = 1.728/1.992/2.278/0.179 ms
     163}}}
     164
     165From PCUT you should also be able to ping PCRemote. The IP of PCRemote is '''"10.10.4.2"'''.
     166{{{
     167[inki@pcut ~]$ ping 10.10.4.2 -c 5
     168PING 10.10.4.2 (10.10.4.2) 56(84) bytes of data.
     16964 bytes from 10.10.4.2: icmp_seq=1 ttl=64 time=2.39 ms
     17064 bytes from 10.10.4.2: icmp_seq=2 ttl=64 time=0.218 ms
     17164 bytes from 10.10.4.2: icmp_seq=3 ttl=64 time=2.32 ms
     17264 bytes from 10.10.4.2: icmp_seq=4 ttl=64 time=0.253 ms
     17364 bytes from 10.10.4.2: icmp_seq=5 ttl=64 time=2.33 ms
     174
     175--- 10.10.4.2 ping statistics ---
     1765 packets transmitted, 5 received, 0% packet loss, time 4004ms
     177rtt min/avg/max/mdev = 0.218/1.504/2.398/1.037 ms
     178}}}
     179
     180Now let's try and ping the PCRemote from VMUT. Login to VMUT and run:
     181{{{
     182ping 10.10.4.2 -c 5 -w 5
     183}}}
     184
     185The ping should timeout. The output should look like :
     186{{{
     187[inki@VMUT ~]$ ping 10.10.4.2 -c 5 -w 5
     188PING 10.10.4.2 (10.10.4.2) 56(84) bytes of data.
     189
     190--- 10.10.4.2 ping statistics ---
     1916 packets transmitted, 0 received, 100% packet loss, time 4998ms
     192}}}
     193
     194== 2c. Enable IP forwarding at PCUT ==
     195The ping fails because although PCRemote and VMUT are both connected
     196to PCUT, the PCUT is not configured to route packets. Check the IP routing
     197flag :
     198{{{
     199[inki@pcut ~]$ cat /proc/sys/net/ipv4/ip_forward                               
     2000
     201}}}
     202
     203To enable IP forwarding run :
     204{{{
     205echo "1" | sudo tee /proc/sys/net/ipv4/ip_forward
     206}}}
     207
     208Now try to ping again from VMUT. The output should look like :
     209{{{
     210
     211}}}
    166212= 3. Sending Layer 2 traffic =
    167213== 3a. Login to VM@Utah ==