8.6. Checking the Network

Check the status of the network on the gateway/router machine k6-2.weeble.com:

% netstat -rn

The results will be similar to those shown below:

Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            209.26.21.1        UGSc        5     4707   tun0
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.0          link#1             UC          2        0    dc0
192.168.0.2        0:4:5a:74:6b:b5    UHLW        0      142    lo0
192.168.0.11       0:80:ad:70:5a:13   UHLW        1     2803    dc0     40
209.26.21.1        209.26.21.174      UH          6        0   tun0

Internet6:
Destination                       Gateway                       Flags      Netif
 Expire
::1                               ::1                           UH          lo0
fe80::%dc0/64                     link#1                        UC          dc0
fe80::204:5aff:fe74:6bb5%dc0      0:4:5a:74:6b:b5               UHL         lo0
fe80::%ed0/64                     link#2                        UC          ed0
fe80::5054:5ff:fede:731b%ed0      52:54:5:de:73:1b              UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   Uc          lo0
fe80::1%lo0                       link#4                        UHL         lo0
fe80::%tun0/64                    fe80::204:5aff:fe74:6bb5%tun0 Uc         tun0
fe80::204:5aff:fe74:6bb5%tun0     link#8                        UHL         lo0
ff01::/32                         ::1                           U           lo0
ff02::%dc0/32                     link#1                        UC          dc0
ff02::%ed0/32                     link#2                        UC          ed0
ff02::%lo0/32                     ::1                           UC          lo0
ff02::%tun0/32                    fe80::204:5aff:fe74:6bb5%tun0 UC         tun0
   

Repeat this for the 486.weeble.com machine:

% netstat -rn

The results will be similar to those shown below:

Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.0.2        UGSc        2        4    ed0
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.0          link#1             UC          1        0    ed0
192.168.0.2        0:4:5a:74:6b:b5    UHLW        4      242    ed0    844

Internet6:
Destination                       Gateway                       Flags      Netif
 Expire
::1                               ::1                           UH          lo0
fe80::%ed0/64                     link#1                        UC          ed0
fe80::280:adff:fe70:5a13%ed0      0:80:ad:70:5a:13              UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   Uc          lo0
fe80::1%lo0                       link#2                        UHL         lo0
ff01::/32                         ::1                           U           lo0
ff02::%ed0/32                     link#1                        UC          ed0
ff02::%lo0/32                     ::1                           UC          lo0
   

Check that k6-2.weeble.com machine can ping the 486.weeble.com machine:

% ping -c 3 gw
PING 486.weeble.com (192.168.0.11): 56 data bytes
64 bytes from 192.168.0.11: icmp_seq=0 ttl=64 time=0.750 ms
64 bytes from 192.168.0.11: icmp_seq=1 ttl=64 time=0.680 ms
64 bytes from 192.168.0.11: icmp_seq=2 ttl=64 time=48.928 ms

--- 486.weeble.com ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.680/16.786/48.928/22.728 ms
   

Verify that the 486.weeble.com machine can ping then k6-2.weeble.com machine:

% ping -c 3 k6-2
PING k6-2.weeble.com (192.168.0.2): 56 data bytes
64 bytes from 192.168.0.2: icmp_seq=0 ttl=64 time=0.857 ms
64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=0.771 ms
64 bytes from 192.168.0.2: icmp_seq=2 ttl=64 time=0.979 ms

--- k6-2.weeble.com ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.771/0.869/0.979/0.085 ms
   

Finally, make sure that you can ping some site external to the network:

% ping -c 3 treefort.org
PING treefort.org (169.197.57.66): 56 data bytes
64 bytes from 169.197.57.66: icmp_seq=0 ttl=237 time=176.163 ms
64 bytes from 169.197.57.66: icmp_seq=1 ttl=237 time=156.535 ms
64 bytes from 169.197.57.66: icmp_seq=2 ttl=237 time=180.088 ms

--- treefort.org ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 156.535/170.929/180.088/10.303 ms
   

Everything should now have access to the net.