LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 563|回复: 6

IP问题。

[复制链接]
发表于 2004-10-1 13:06:15 | 显示全部楼层 |阅读模式
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=2.69 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.438 ms

--- 192.168.0.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.438/1.564/2.690/1.126 ms
linux:/home/haod # ping 192.168.0.2
PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
64 bytes from 192.168.0.2: icmp_seq=1 ttl=128 time=0.349 ms
64 bytes from 192.168.0.2: icmp_seq=2 ttl=128 time=0.448 ms
64 bytes from 192.168.0.2: icmp_seq=3 ttl=128 time=0.398 ms

--- 192.168.0.2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.349/0.398/0.448/0.043 ms
linux:/home/haod # ping www.163.com
connect: Network is unreachable
linux:/home/haod #

为什么上不了,
connect: Network is unreachable什么意思,怎么解决?
发表于 2004-10-1 13:35:30 | 显示全部楼层
上网了么?
 楼主| 发表于 2004-10-1 14:38:24 | 显示全部楼层
在windows下可以上网
在windows下是自动分得的ip,linux下是手动添加的。
发表于 2004-10-1 15:14:10 | 显示全部楼层
你好好的看一下你的IP和你的网关设对没有!!
你先PING一下外网的IP如果能PING通,再PING一下你的域名,如果能PING通就能上网!!
发表于 2004-10-1 17:31:35 | 显示全部楼层
route 看下你的路由设置。要正确设置默认网关最出是出去的。
nslookup 看下你的dns .能不能解析。
/etc/resolv.conf 写入可用的dns
 楼主| 发表于 2004-10-1 20:47:08 | 显示全部楼层
谢谢大家, 好用了:)
发表于 2004-10-4 20:51:06 | 显示全部楼层
直接添加route表就行了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表