我装了Linux系统,在宿舍通过路由上网,ping远程IP,发现ping不通,系统返回的信息如下:
[root@localhost ~]# ping 202.108.22.5
PING 202.108.22.5 (202.108.22.5) 56(84) bytes of data.
From 125.216.234.129 icmp_seq=2 Destination Host Unreachable
From 125.216.234.129 icmp_seq=3 Destination Host Unreachable
From 125.216.234.129 icmp_seq=4 Destination Host Unreachable
From 125.216.234.129 icmp_seq=6 Destination Host Unreachable
……
125.216.234.129 是我自己的主机IP,终止ping命令后显示:
--- 202.108.22.5 ping statistics ---
13 packets transmitted, 0 received, +9 errors, 100% packet loss, time 12000ms
, pipe 3
谁看得懂上面的返回信息,是什么原因ping不通呢?
[root@localhost ~]# traceroute 202.108.22.5
traceroute to 202.108.22.5 (202.108.22.5), 30 hops max, 40 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 localhost.localdomain (125.216.234.129)(H!) 2916.090 ms (H!) 2912.060 ms (H!) 2908.123 ms
尝试traceroute路由器IP:
[root@localhost ~]# traceroute 125.216.234.214
traceroute to 125.216.234.214 (125.216.234.214), 30 hops max, 40 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 localhost.localdomain (125.216.234.129)(H!) 2924.008 ms (H!) 2920.165 ms (H!) 2916.179 ms
netstat -nr的输出:
[root@localhost ~]# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
125.216.234.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 125.216.234.214 0.0.0.0 UG 0 0 0 eth0