| 72 | ssh to each of the nodes in the experiment. Become root with 'sudo su'. |
| 73 | |
| 74 | We will now add host routes so the client nodes in the experiment can talk to each other across the GW systems. |
| 75 | |
| 76 | On client0: |
| 77 | |
| 78 | {{{ |
| 79 | $ route add -net 10.10.2.0/24 gw 10.10.1.2 |
| 80 | }}} |
| 81 | |
| 82 | On gateway0: |
| 83 | |
| 84 | {{{ |
| 85 | $ route add -net 10.10.2.0/24 gw 192.168.1.2 |
| 86 | }}} |
| 87 | |
| 88 | On gateway1: |
| 89 | |
| 90 | {{{ |
| 91 | $ route add -net 10.10.1.0/24 gw 192.168.1.1 |
| 92 | }}} |
| 93 | |
| 94 | On client1: |
| 95 | |
| 96 | {{{ |
| 97 | $ route ad -net 10.10.1.0/24 gw 10.10.2.2 |
| 98 | }}} |
| 99 | |
| 100 | |
| 101 | From client0, you should now be able to ping and traceroute to client1: |
| 102 | |
| 103 | {{{ |
| 104 | $ ping 10.10.2.1 |
| 105 | PING 10.10.2.1 (10.10.2.1) 56(84) bytes of data. |
| 106 | 64 bytes from 10.10.2.1: icmp_req=1 ttl=62 time=0.054 ms |
| 107 | 64 bytes from 10.10.2.1: icmp_req=2 ttl=62 time=0.062 ms |
| 108 | 64 bytes from 10.10.2.1: icmp_req=3 ttl=62 time=0.067 ms |
| 109 | ^C |
| 110 | --- 10.10.2.1 ping statistics --- |
| 111 | 3 packets transmitted, 3 received, 0% packet loss, time 1999ms |
| 112 | rtt min/avg/max/mdev = 0.054/0.061/0.067/0.005 ms |
| 113 | }}} |
| 114 | |
| 115 | {{{ |
| 116 | $ traceroute 10.10.2.1 |
| 117 | traceroute to 10.10.2.1 (10.10.2.1), 30 hops max, 60 byte packets |
| 118 | 1 gateway0-lan0 (10.10.1.2) 0.049 ms 0.013 ms 0.011 ms |
| 119 | 2 gateway1-lan1 (192.168.1.2) 0.031 ms 0.017 ms 0.016 ms |
| 120 | 3 10.10.2.1 (10.10.2.1) 0.028 ms 0.022 ms 0.021 ms |
| 121 | }}} |
| 122 | |