LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: kunasen

网络已激活,为什么上不了网?

[复制链接]
发表于 2004-11-26 17:05:39 | 显示全部楼层
运行host/nslookup/dig www.163.com 如果可以得到www.163.com的IP的话,说明DNS运作正常
ifconfig
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1   看看这里是不是UP

route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.70.54.0      *               255.255.255.0   U     0      0        0 eth0
default         10.70.54.254    0.0.0.0         UG    0      0        0 eth0
看看你的default 那行对不对,如果没有的话,那就必须添加网关
route add default gw 10.70.54.254 改成你的网关
 楼主| 发表于 2004-11-26 17:15:25 | 显示全部楼层
最初由 6692975 发表
运行host/nslookup/dig www.163.com 如果可以得到www.163.com的IP的话,说明DNS运作正常
ifconfig
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1   看看这里是不是UP

route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.70.54.0      *               255.255.255.0   U     0      0        0 eth0
default         10.70.54.254    0.0.0.0         UG    0      0        0 eth0
看看你的default 那行对不对,如果没有的话,那就必须添加网关
route add default gw 10.70.54.254 改成你的网关


太谢谢了!
现在就去试,好像是没有网关default那行
 楼主| 发表于 2004-11-26 17:44:46 | 显示全部楼层
最初由 6692975 发表
运行host/nslookup/dig www.163.com 如果可以得到www.163.com的IP的话,说明DNS运作正常
ifconfig
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1   看看这里是不是UP

route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.70.54.0      *               255.255.255.0   U     0      0        0 eth0
default         10.70.54.254    0.0.0.0         UG    0      0        0 eth0
看看你的default 那行对不对,如果没有的话,那就必须添加网关
route add default gw 10.70.54.254 改成你的网关


ifconfig
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1   是UP

然后route add default gw 10.0.0.1后还是不能上网
然后route add default gw 10.0.0.1 netmask 255.255.255.0也不行

哭了~~~
 楼主| 发表于 2004-11-29 16:09:41 | 显示全部楼层
不好以意思,又上来了
因为问题还没解决呢,麻烦各位给看看
发表于 2004-11-29 21:09:22 | 显示全部楼层
参照其他的windows,先确定可用的网关地址和dns地址,然后按照前面的提示,保证网关地址和dns地址已经被正确的配置到linux中,route一下看看default gw对不对。
确保可以在局域网中正常通讯后,对于dns的问题,你也可以先到别的windows上ping一下某个网站,然后将那个网站的ip记下来,回到linux中,在浏览器地址栏中直接输入那个网站的ip地址,如果可以正常访问,但用域名就是不能访问,那么有可能是dns地址错误,或者dns不可用,再或者你的网址输入有错误。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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