Linux下Ping不通的显示

我装了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

哥哥 你的网关根本就没设置啊 ,现在系统以你自身为默认网关..

首先 路由器通常是dhcp自动分配, 你的情况又像极了在dhcp环境中手动设置网络 而又没设置完全的情况

你 运行

traceroute 202.102.22.5

看看在断在那个位置

除了traceroute 的显示结果, 最好附上

netstat -nr 的输出
温馨提示:答案为网友推荐,仅供参考
第1个回答  2008-09-21
恩,默认网关,还有DNS是否正确,我也想到这两个
第2个回答  2008-09-21
默认网关你设置了吗?
相似回答