LinuxSir.cn,穿越时空的Linuxsir!

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

*************上网的问题,急度痛苦...求助****************

[复制链接]
发表于 2006-12-14 02:50:27 | 显示全部楼层 |阅读模式
本来好好的在这儿发贴,一边安装新的东西(hdapsd相关,无线网卡相关的),然后重启,重启后net.lo启动出错,但还是正常起动,net.eth0正常启动。然后用普通用户不能进入gnome,但X正常启动(把gnome相关的个人配置都去掉也没用),用root可以进入gnome,但什么用户都不能上网(但是可以连接到网关)。

我用livecd把net.lo 替换到最原始状态,这样,net.lo正常启动,net.eth0也正常起动。

ifconfig看网卡启动情况没有问题。
用route查看路由表,也没有问题,
cat /etc/reslov.conf,里面放有三个在windows测试过的DNS
ping 127.0.0.1   (正常)
ping 192.168.1.68     (网关正常返回)
http://192.168.1.68  (网关上的页面打开)   
ping www.csdn.net(马上返回网路不可达)
ping 202.12.27.33 (立即返回网络不可达)
回到windows下,能发此贴,足以说明网关一切正常呀!!

重编新的一个内核,如上正常启动,依然不能上网!!
请问题到底是那儿出问题了?

[color="Red"]前面为了方便大家理解,我就把网关改成了192.168.1.1
发表于 2006-12-14 08:51:50 | 显示全部楼层
traceroute 202.12.27.33
nslookup www.csdn.net

结果如何?
回复 支持 反对

使用道具 举报

发表于 2006-12-14 08:55:52 | 显示全部楼层
还有,你 ping ,traceroute 一下你设置的 dns
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-14 11:00:01 | 显示全部楼层
测试了以下
DongQ_Lap   # lsmod | grep e1000
e1000                  98752  0
DongQ_Lap   # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:41:A9:60:69  
          inet addr:192.168.1.99  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3435 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1569 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:808111 (789.1 Kb)  TX bytes:111244 (108.6 Kb)
          Base address:0x3000 Memory:ee000000-ee020000

lo        Link encapocal Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:737 errors:0 dropped:0 overruns:0 frame:0
          TX packets:737 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1393379 (1.3 Mb)  TX bytes:1393379 (1.3 Mb)

DongQ_Lap   # route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.1.68    255.255.255.255 UGH   0      0        0 eth0
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
DongQ_Lap   # cat /etc/resolv.conf
nameserver 202.216.228.18
nameserver 202.12.27.33
nameserver 202.106.0.20
DongQ_Lap   # ping 192.168.1.68
PING 192.168.1.68 (192.168.1.68) 56(84) bytes of data.
64 bytes from 192.168.1.68: icmp_seq=1 ttl=128 time=1.44 ms
64 bytes from 192.168.1.68: icmp_seq=2 ttl=128 time=0.480 ms
64 bytes from 192.168.1.68: icmp_seq=3 ttl=128 time=0.400 ms

--- 192.168.1.68 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.400/0.774/1.443/0.474 ms
DongQ_Lap   # ping 202.12.27.33
connect: Network is unreachable
DongQ_Lap   # ping www.csdn.net
ping: unknown host www.csdn.net
DongQ_Lap   # tracepath www.csdn.net
gethostbyname: Host name lookup failure
DongQ_Lap   # tracepath 202.12.27.33
1:  send failed
     Resume: pmtu 65535
DongQ_Lap   # tracepath 192.168.1.68
1:  dongq.laptop (192.168.1.99)                            0.128ms pmtu 1500
1:  no reply
2:  no reply

DongQ_Lap   # tracepath 219.155.46.131
1:  send failed
     Resume: pmtu 65535
DongQ_Lap dongq #
回复 支持 反对

使用道具 举报

发表于 2006-12-14 11:09:54 | 显示全部楼层
default 192.168.1.68 255.255.255.255 UGH 0 0 0 eth0
网关到底是1.1还是1.68?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-14 12:44:51 | 显示全部楼层
网关是192.168.1.68
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-14 12:49:42 | 显示全部楼层
似乎明显是DNS的问题,但是内核如何与DNS相关的东西打交道?以及 resolv.conf被谁解析?

会不是是在安装无线网卡驱动时造成了一些问题?或者冲突?(似乎也不太像,毕竟可以连上局域网中的所有机子)...


是内核有问题?还是配置有问题?DNS相关的配置也中有resolv.conf呀?还有其它地方吗?这一块一直就没有搞清楚过....


不能上网,gentoo用户的痛苦呀...

[color="Red"]
应该不是DNS的问题,误导了大家,因为我直接访问外部的ip地址,也是不行的...
感觉还是在proxy/route table上面....不误导了
回复 支持 反对

使用道具 举报

发表于 2006-12-14 13:08:01 | 显示全部楼层
和我的网关比较了一下,你的网关设置有问题:

Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.68 255.255.255.255 UGH 0 0 0 eth0
                                  ^^^^^^^^^^^
应该是0.0.0.0,你这样就把所有的包都掩掉了,你试一下下面的命令:
#route del default (删除默认路由)
#route add default gw 192.168.1.68
回复 支持 反对

使用道具 举报

发表于 2006-12-14 13:09:14 | 显示全部楼层
和我的网关比较了一下,你的网关设置有问题:

Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.68 255.255.255.255 UGH 0 0 0 eth0
                                  ^^^^^^^^^^^
应该是0.0.0.0,你这样就把所有的包都掩掉了,你试一下下面的命令:
#route del default (删除默认路由)
#route add default gw 192.168.1.68
回复 支持 反对

使用道具 举报

发表于 2006-12-14 13:10:14 | 显示全部楼层
和我的网关比较了一下,你的网关设置有问题:

Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.68 255.255.255.255 UGH 0 0 0 eth0
                                  ^^^^^^^^^^^
应该是0.0.0.0,你这样就把所有的包都掩掉了,你试一下下面的命令:
#route del default (删除默认路由)
#route add default gw 192.168.1.68
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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