Sorry for the long post....
I cannot seem to get routing to work properly on my server.
Any packets destined for 192.168.1.1-192.168.1.255 should go through the eth1 interface and the 192.168.1.1 router, and they do.
All others should go through eth0 and the 68.160.126.129 router, but only some don't.
Code:
>route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
68.160.126.128 0.0.0.0 255.255.255.248 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 68.160.126.129 0.0.0.0 UG 0 0 0 eth0
If I delete the extra eth1 route, nothing changes.
Code:
>route -v del -net 169.254.0.0 netmask 255.255.0.0 gw 0.0.0.0
>route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
68.160.126.128 0.0.0.0 255.255.255.248 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 68.160.126.129 0.0.0.0 UG 0 0 0 eth0
Even so, the route seems to revert on restart of network services.
I have apparently no idea how routing works since it looks to me that the packets should to where I want them to.
ifconfig, route, ping, traceroute output found at end. If I left out anything needed, let me know.
Any help appreciated.
Thanks in advance!
-Gabriele
=================================================================
SUMMARY:
=================================================================
Code:
From the server:
To Routed Ping Tracerout
Thru * eth0 eth1
-------------- ------ ---- ---- ---- ----
68.160.126.134 eth0 OK OK OK ERR
68.160.126.133 eth0 OK OK OK ERR
68.160.126.132 eth0 OK OK OK ERR
68.160.126.131 eth1 OK ERR ERR OK <-- should go through eth0, not eth1
68.160.126.129 eth0 OK OK OK ERR
216.239.39.99 eth1 OK ERR ERR ERR <-- should go through eth0, not eth1
192.168.1.13 eth1 OK OK ERR OK
192.168.1.1 eth1 ERR ERR ERR ERR <-- not sure why this is.
192.168.1.40 eth1 OK OK ERR OK
The router works well any way it goes.
Code:
From 192.168.1.1,68.160.126.131 (router)
To Ping Tracerout
--------------- ---- ---------
68.160.126.134 OK OK
68.160.126.133 OK OK
68.160.126.132 OK OK
68.160.126.131 OK OK
68.160.126.129 OK OK
216.239.39.99 OK OK
192.168.1.13 OK OK
192.168.1.1 OK OK
192.168.1.40 OK OK
Things behind the 192.168.1.1,68.160.126.131 router all seem to work, though some protocols (SSH, and HTTPS) fail when connecting to the server on 192.168.1.13 but otherwise work.
Code:
From 192.168.1.40 (a computer)
To Routed Ping Tracerout
Thru
-------------- ---------------------------- ---- ---------
68.160.126.134 192.168.1.1 OK OK
68.160.126.133 192.168.1.1 OK OK
68.160.126.132 192.168.1.1 OK OK
68.160.126.131 none OK OK
68.160.126.129 192.168.1.1 OK OK
216.239.39.99 192.168.1.1,68.160.126.129 OK OK
192.168.1.13 none OK OK
192.168.1.1 none OK OK
192.168.1.40 none OK OK
=================================================================
The Gory Details:
=================================================================
Code:
>ifconfig
eth0 Link encap:Ethernet HWaddr 00:90:47:03:B3:4F
inet addr:68.160.126.134 Bcast:68.160.126.135 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1
RX packets:433133 errors:0 dropped:0 overruns:0 frame:0
TX packets:470539 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:212566619 (202.7 Mb) TX bytes:383913495 (366.1 Mb)
Interrupt:5 Base address:0xa000
eth0:0 Link encap:Ethernet HWaddr 00:90:47:03:B3:4F
inet addr:68.160.126.133 Bcast:68.160.126.135 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1
RX packets:14517 errors:0 dropped:0 overruns:0 frame:0
TX packets:1584 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:8759746 (8.3 Mb) TX bytes:290916 (284.0 Kb)
Interrupt:5 Base address:0xa000
eth0:1 Link encap:Ethernet HWaddr 00:90:47:03:B3:4F
inet addr:68.160.126.132 Bcast:68.160.126.135 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1
RX packets:14517 errors:0 dropped:0 overruns:0 frame:0
TX packets:1584 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:8759746 (8.3 Mb) TX bytes:290916 (284.0 Kb)
Interrupt:5 Base address:0xa000
eth1 Link encap:Ethernet HWaddr 00:50:8D:FB:E3:F4
inet addr:192.168.1.13 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1
RX packets:14517 errors:0 dropped:0 overruns:0 frame:0
TX packets:1584 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:8759746 (8.3 Mb) TX bytes:290916 (284.0 Kb)
Interrupt:11
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:110948 errors:0 dropped:0 overruns:0 frame:0
TX packets:110948 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:21797708 (20.7 Mb) TX bytes:21797708 (20.7 Mb)
RUNNING test_net.sh:
Code:
#!/bin/bash
for ip in 68.160.126.134 68.160.126.133 68.160.126.132 \
68.160.126.131 68.160.126.129 216.239.39.99 \
192.168.1.13 192.168.1.1 192.168.1.40 192.168.1.78
do
echo
echo "================================================================="
echo "PINGING $ip:"
ping -c 3 $ip
echo "-----------------------------------------------------------------"
echo "TRACEROUTE TO $ip"
traceroute -w 2 -n -m 8 $ip
echo "-----------------------------------------------------------------"
echo "TRACEROUTE TO $ip FORCING ROUTE eth0"
traceroute -w 2 -i eth0 -n -m 8 $ip
echo "-----------------------------------------------------------------"
echo "TRACEROUTE TO $ip FORCING ROUTE eth1"
traceroute -w 2 -i eth1 -n -m 8 $ip
echo
done
I GOT:
Code:
PINGING 68.160.126.134:
PING 68.160.126.134 (68.160.126.134) 56(84) bytes of data.
64 bytes from 68.160.126.134: icmp_seq=1 ttl=64 time=0.062 ms
64 bytes from 68.160.126.134: icmp_seq=2 ttl=64 time=0.042 ms
64 bytes from 68.160.126.134: icmp_seq=3 ttl=64 time=0.038 ms
--- 68.160.126.134 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2015ms
rtt min/avg/max/mdev = 0.038/0.047/0.062/0.011 ms
-----------------------------------------------------------------
TRACEROUTE TO 68.160.126.134
traceroute to 68.160.126.134 (68.160.126.134), 8 hops max, 38 byte packets
1 68.160.126.134 0.064 ms 0.060 ms 0.065 ms
-----------------------------------------------------------------
TRACEROUTE TO 68.160.126.134 FORCING ROUTE eth0
traceroute to 68.160.126.134 (68.160.126.134), 8 hops max, 38 byte packets
1 68.160.126.134 0.066 ms 0.062 ms 0.064 ms
-----------------------------------------------------------------
TRACEROUTE TO 68.160.126.134 FORCING ROUTE eth1
traceroute to 68.160.126.134 (68.160.126.134), 8 hops max, 38 byte packets
1 * 192.168.1.13 997.203 ms !H *
2 192.168.1.13 995.018 ms !H * 997.360 ms !H
=================================================================
PINGING 68.160.126.133:
PING 68.160.126.133 (68.160.126.133) 56(84) bytes of data.
64 bytes from 68.160.126.133: icmp_seq=1 ttl=64 time=0.042 ms
64 bytes from 68.160.126.133: icmp_seq=2 ttl=64 time=0.035 ms
64 bytes from 68.160.126.133: icmp_seq=3 ttl=64 time=0.037 ms
--- 68.160.126.133 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2005ms
rtt min/avg/max/mdev = 0.035/0.038/0.042/0.003 ms
-----------------------------------------------------------------
TRACEROUTE TO 68.160.126.133
traceroute to 68.160.126.133 (68.160.126.133), 8 hops max, 38 byte packets
1 68.160.126.133 0.059 ms 0.020 ms 0.018 ms
-----------------------------------------------------------------
TRACEROUTE TO 68.160.126.133 FORCING ROUTE eth0
traceroute to 68.160.126.133 (68.160.126.133), 8 hops max, 38 byte packets
1 68.160.126.133 0.060 ms 0.019 ms 0.019 ms
-----------------------------------------------------------------
TRACEROUTE TO 68.160.126.133 FORCING ROUTE eth1
traceroute to 68.160.126.133 (68.160.126.133), 8 hops max, 38 byte packets
1 * 192.168.1.13 996.671 ms !H *
2 192.168.1.13 993.441 ms !H * 999.741 ms !H
=================================================================
PINGING 68.160.126.132:
PING 68.160.126.132 (68.160.126.132) 56(84) bytes of data.
64 bytes from 68.160.126.132: icmp_seq=1 ttl=64 time=0.042 ms
64 bytes from 68.160.126.132: icmp_seq=2 ttl=64 time=0.037 ms
64 bytes from 68.160.126.132: icmp_seq=3 ttl=64 time=0.038 ms
--- 68.160.126.132 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 0.037/0.039/0.042/0.002 ms
-----------------------------------------------------------------
TRACEROUTE TO 68.160.126.132
traceroute to 68.160.126.132 (68.160.126.132), 8 hops max, 38 byte packets
1 68.160.126.132 0.059 ms 0.019 ms 0.018 ms
-----------------------------------------------------------------
TRACEROUTE TO 68.160.126.132 FORCING ROUTE eth0
traceroute to 68.160.126.132 (68.160.126.132), 8 hops max, 38 byte packets
1 68.160.126.132 0.061 ms 0.019 ms 0.018 ms
-----------------------------------------------------------------
TRACEROUTE TO 68.160.126.132 FORCING ROUTE eth1
traceroute to 68.160.126.132 (68.160.126.132), 8 hops max, 38 byte packets
1 * 192.168.1.13 996.868 ms !H *
2 192.168.1.13 993.553 ms !H * 999.746 ms !H
=================================================================
PINGING 68.160.126.131:
PING 68.160.126.131 (68.160.126.131) 56(84) bytes of data.
64 bytes from 68.160.126.131: icmp_seq=1 ttl=64 time=1.26 ms
64 bytes from 68.160.126.131: icmp_seq=2 ttl=64 time=0.784 ms
64 bytes from 68.160.126.131: icmp_seq=3 ttl=64 time=0.728 ms
--- 68.160.126.131 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2015ms
rtt min/avg/max/mdev = 0.728/0.924/1.260/0.238 ms
-----------------------------------------------------------------
TRACEROUTE TO 68.160.126.131
traceroute to 68.160.126.131 (68.160.126.131), 8 hops max, 38 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
-----------------------------------------------------------------
TRACEROUTE TO 68.160.126.131 FORCING ROUTE eth0
traceroute to 68.160.126.131 (68.160.126.131), 8 hops max, 38 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
-----------------------------------------------------------------
TRACEROUTE TO 68.160.126.131 FORCING ROUTE eth1
traceroute to 68.160.126.131 (68.160.126.131), 8 hops max, 38 byte packets
1 68.160.126.131 3.326 ms 3.092 ms 3.058 ms
=================================================================
PINGING 68.160.126.129:
PING 68.160.126.129 (68.160.126.129) 56(84) bytes of data.
64 bytes from 68.160.126.129: icmp_seq=1 ttl=155 time=0.316 ms
64 bytes from 68.160.126.129: icmp_seq=2 ttl=155 time=0.307 ms
64 bytes from 68.160.126.129: icmp_seq=3 ttl=155 time=0.310 ms
--- 68.160.126.129 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2021ms
rtt min/avg/max/mdev = 0.307/0.311/0.316/0.003 ms
-----------------------------------------------------------------
TRACEROUTE TO 68.160.126.129
traceroute to 68.160.126.129 (68.160.126.129), 8 hops max, 38 byte packets
1 68.160.126.129 3.114 ms 3.084 ms 0.316 ms
-----------------------------------------------------------------
TRACEROUTE TO 68.160.126.129 FORCING ROUTE eth0
traceroute to 68.160.126.129 (68.160.126.129), 8 hops max, 38 byte packets
1 68.160.126.129 3.172 ms 2.960 ms 3.193 ms
-----------------------------------------------------------------
TRACEROUTE TO 68.160.126.129 FORCING ROUTE eth1
traceroute to 68.160.126.129 (68.160.126.129), 8 hops max, 38 byte packets
1 * 192.168.1.13 996.859 ms !H *
2 192.168.1.13 993.872 ms !H * 999.742 ms !H
=================================================================
PINGING 216.239.39.99:
PING 216.239.39.99 (216.239.39.99) 56(84) bytes of data.
64 bytes from 216.239.39.99: icmp_seq=1 ttl=242 time=21.8 ms
64 bytes from 216.239.39.99: icmp_seq=2 ttl=242 time=21.7 ms
64 bytes from 216.239.39.99: icmp_seq=3 ttl=242 time=21.9 ms
--- 216.239.39.99 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2015ms
rtt min/avg/max/mdev = 21.734/21.836/21.924/0.187 ms
-----------------------------------------------------------------
TRACEROUTE TO 216.239.39.99
traceroute to 216.239.39.99 (216.239.39.99), 8 hops max, 38 byte packets
1 68.160.126.129 3.160 ms 2.993 ms 2.995 ms
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
-----------------------------------------------------------------
TRACEROUTE TO 216.239.39.99 FORCING ROUTE eth0
traceroute to 216.239.39.99 (216.239.39.99), 8 hops max, 38 byte packets
1 68.160.126.129 3.129 ms 3.038 ms 3.138 ms
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
-----------------------------------------------------------------
TRACEROUTE TO 216.239.39.99 FORCING ROUTE eth1
traceroute to 216.239.39.99 (216.239.39.99), 8 hops max, 38 byte packets
1 * 192.168.1.13 996.901 ms !H *
2 192.168.1.13 999.747 ms !H * 999.745 ms !H
=================================================================
PINGING 192.168.1.13:
PING 192.168.1.13 (192.168.1.13) 56(84) bytes of data.
64 bytes from 192.168.1.13: icmp_seq=1 ttl=64 time=0.040 ms
64 bytes from 192.168.1.13: icmp_seq=2 ttl=64 time=0.036 ms
64 bytes from 192.168.1.13: icmp_seq=3 ttl=64 time=0.042 ms
--- 192.168.1.13 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 0.036/0.039/0.042/0.005 ms
-----------------------------------------------------------------
TRACEROUTE TO 192.168.1.13
traceroute to 192.168.1.13 (192.168.1.13), 8 hops max, 38 byte packets
1 192.168.1.13 0.060 ms 0.019 ms 0.018 ms
-----------------------------------------------------------------
TRACEROUTE TO 192.168.1.13 FORCING ROUTE eth0
traceroute to 192.168.1.13 (192.168.1.13), 8 hops max, 38 byte packets
1 68.160.126.129 0.261 ms 0.217 ms 0.207 ms
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
-----------------------------------------------------------------
TRACEROUTE TO 192.168.1.13 FORCING ROUTE eth1
traceroute to 192.168.1.13 (192.168.1.13), 8 hops max, 38 byte packets
1 192.168.1.13 0.063 ms 0.021 ms 0.018 ms
=================================================================
PINGING 192.168.1.1:
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2013ms
-----------------------------------------------------------------
TRACEROUTE TO 192.168.1.1
traceroute to 192.168.1.1 (192.168.1.1), 8 hops max, 38 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
-----------------------------------------------------------------
TRACEROUTE TO 192.168.1.1 FORCING ROUTE eth0
traceroute to 192.168.1.1 (192.168.1.1), 8 hops max, 38 byte packets
1 68.160.126.129 3.147 ms 3.032 ms 3.073 ms
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
-----------------------------------------------------------------
TRACEROUTE TO 192.168.1.1 FORCING ROUTE eth1
traceroute to 192.168.1.1 (192.168.1.1), 8 hops max, 38 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
=================================================================
PINGING 192.168.1.40:
PING 192.168.1.40 (192.168.1.40) 56(84) bytes of data.
64 bytes from 192.168.1.40: icmp_seq=1 ttl=128 time=0.265 ms
64 bytes from 192.168.1.40: icmp_seq=2 ttl=128 time=0.169 ms
64 bytes from 192.168.1.40: icmp_seq=3 ttl=128 time=0.177 ms
--- 192.168.1.40 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2014ms
rtt min/avg/max/mdev = 0.169/0.203/0.265/0.046 ms
-----------------------------------------------------------------
TRACEROUTE TO 192.168.1.40
traceroute to 192.168.1.40 (192.168.1.40), 8 hops max, 38 byte packets
1 192.168.1.40 3.122 ms 0.672 ms 0.119 ms
-----------------------------------------------------------------
TRACEROUTE TO 192.168.1.40 FORCING ROUTE eth0
traceroute to 192.168.1.40 (192.168.1.40), 8 hops max, 38 byte packets
1 68.160.126.129 3.320 ms 4.679 ms 3.113 ms
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
-----------------------------------------------------------------
TRACEROUTE TO 192.168.1.40 FORCING ROUTE eth1
traceroute to 192.168.1.40 (192.168.1.40), 8 hops max, 38 byte packets
1 192.168.1.40 3.180 ms 3.019 ms 3.121 ms
=================================================================
PINGING 192.168.1.78:
PING 192.168.1.78 (192.168.1.78) 56(84) bytes of data.
From 192.168.1.13 icmp_seq=1 Destination Host Unreachable
From 192.168.1.13 icmp_seq=2 Destination Host Unreachable
From 192.168.1.13 icmp_seq=3 Destination Host Unreachable
--- 192.168.1.78 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2011ms
, pipe 3
-----------------------------------------------------------------
TRACEROUTE TO 192.168.1.78
traceroute to 192.168.1.78 (192.168.1.78), 8 hops max, 38 byte packets
1 * 192.168.1.13 996.693 ms !H *
2 192.168.1.13 993.834 ms !H * 999.740 ms !H
-----------------------------------------------------------------
TRACEROUTE TO 192.168.1.78 FORCING ROUTE eth0
traceroute to 192.168.1.78 (192.168.1.78), 8 hops max, 38 byte packets
1 68.160.126.129 3.079 ms 2.946 ms 3.085 ms
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
-----------------------------------------------------------------
TRACEROUTE TO 192.168.1.78 FORCING ROUTE eth1
traceroute to 192.168.1.78 (192.168.1.78), 8 hops max, 38 byte packets
1 * 192.168.1.13 997.316 ms !H *
2 192.168.1.13 999.735 ms !H * 999.738 ms !H
=================================================================
FROM 192.168.1.1/68.160.126.131 ROUTER
=================================================================
Code:
%traceroute 68.160.126.134
traceroute to 68.160.126.134 (68.160.126.134), 30 hops max, 40 byte packets
1 68.160.126.134 (68.160.126.134) 2.676 ms 0.999 ms 6.971 ms
Trace complete
Code:
%ping 68.160.126.134
PING 68.160.126.134 (68.160.126.134): 56 data bytes
64 bytes from 68.160.126.134: icmp_seq=0 ttl=64 time=2.6 ms
64 bytes from 68.160.126.134: icmp_seq=1 ttl=64 time=1.7 ms
64 bytes from 68.160.126.134: icmp_seq=2 ttl=64 time=2.4 ms
64 bytes from 68.160.126.134: icmp_seq=3 ttl=64 time=2.2 ms
64 bytes from 68.160.126.134: icmp_seq=4 ttl=64 time=2.1 ms
--- 68.160.126.134 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 1.7/2.2/2.6 ms
Code:
%ping 68.160.126.131
PING 68.160.126.131 (68.160.126.131): 56 data bytes
64 bytes from 68.160.126.131: icmp_seq=0 ttl=64 time=15.1 ms
64 bytes from 68.160.126.131: icmp_seq=1 ttl=64 time=1.5 ms
64 bytes from 68.160.126.131: icmp_seq=2 ttl=64 time=1.6 ms
64 bytes from 68.160.126.131: icmp_seq=3 ttl=64 time=1.2 ms
64 bytes from 68.160.126.131: icmp_seq=4 ttl=64 time=1.4 ms
--- 68.160.126.131 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 1.2/4.1/15.1 ms
Code:
%traceroute 68.160.126.129
traceroute to 68.160.126.129 (68.160.126.129), 30 hops max, 40 byte packets
1 68.160.126.129 (68.160.126.129) 3.254 ms 1.172 ms 1.169 ms
Trace complete
Code:
%ping 68.160.126.129
PING 68.160.126.129 (68.160.126.129): 56 data bytes
64 bytes from 68.160.126.129: icmp_seq=0 ttl=155 time=1.4 ms
64 bytes from 68.160.126.129: icmp_seq=1 ttl=155 time=11.0 ms
64 bytes from 68.160.126.129: icmp_seq=2 ttl=155 time=12.8 ms
64 bytes from 68.160.126.129: icmp_seq=3 ttl=155 time=1.1 ms
64 bytes from 68.160.126.129: icmp_seq=4 ttl=155 time=2.4 ms
--- 68.160.126.129 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 1.1/5.7/12.8 ms
Code:
%traceroute 192.168.1.1
traceroute to 192.168.1.1 (192.168.1.1), 30 hops max, 40 byte packets
1 192.168.1.1 (192.168.1.1) 2.577 ms 1.649 ms 2.084 ms
Trace complete
Code:
%ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=2.3 ms
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.1 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=1.6 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=1.0 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=1.2 ms
--- 192.168.1.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 1.0/1.4/2.3 ms
Code:
%traceroute 192.168.1.40
traceroute to 192.168.1.40 (192.168.1.40), 30 hops max, 40 byte packets
1 192.168.1.40 (192.168.1.40) 3.045 ms 1.123 ms 1.054 ms
Trace complete
Code:
%ping 192.168.1.40
PING 192.168.1.40 (192.168.1.40): 56 data bytes
64 bytes from 192.168.1.40: icmp_seq=0 ttl=128 time=2.0 ms
64 bytes from 192.168.1.40: icmp_seq=1 ttl=128 time=10.6 ms
64 bytes from 192.168.1.40: icmp_seq=2 ttl=128 time=2.3 ms
64 bytes from 192.168.1.40: icmp_seq=3 ttl=128 time=2.6 ms
64 bytes from 192.168.1.40: icmp_seq=4 ttl=128 time=1.0 ms
--- 192.168.1.40 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 1.0/3.7/10.6 ms
Code:
%ping 216.239.39.99
PING 216.239.39.99 (216.239.39.99): 56 data bytes
64 bytes from 216.239.39.99: icmp_seq=0 ttl=243 time=24.7 ms
64 bytes from 216.239.39.99: icmp_seq=1 ttl=243 time=41.0 ms
64 bytes from 216.239.39.99: icmp_seq=2 ttl=243 time=24.3 ms
64 bytes from 216.239.39.99: icmp_seq=3 ttl=243 time=23.3 ms
64 bytes from 216.239.39.99: icmp_seq=4 ttl=243 time=23.0 ms
--- 216.239.39.99 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 23.0/27.2/41.0 ms