紧急求助:debian 6.0又不能上网了

最大的社区版本,Ubuntu的发源地
回复
llin82
帖子: 26
注册时间: 2006-10-29 11:06

紧急求助:debian 6.0又不能上网了

#1

帖子 llin82 »

debian原来可以上网,一次升级后,debian就不能上网了,windows正常。

DHCP方式不能上网,按windows的IP和网关填写/etc/network/interfaces,再sudo
/etc/init.d/networking restart也不行,DHCP方式重启的话显示许多行DHCPDISCOVER
in eth0 to XX port XX interval=XX,然后报不能连到网关。static方式重启显示正常
,但不能上网。windows可以上网

$ sudo route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface

下面啥都不显示,说明没到达网关

$ sudo ifconfig -a
[sudo] password for linlin:
eth0 Link encap:Ethernet HWaddr aa:00:04:00:0a:04
inet addr:120.92.203.157 Bcast:120.92.223.255 Mask:255.255.224.0
inet6 addr: fe80::216:76ff:fec5:a74d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:276 errors:0 dropped:0 overruns:0 frame:0
TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22078 (21.5 KiB) TX bytes:2528 (2.4 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 B) TX bytes:100 (100.0 B)

$ sudo mii-tool
eth0: negotiated 100baseTx-FD flow-control, link ok

网线连接良好

ping自己可以ping得通
$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_req=1 ttl=64 time=0.035 ms
ping我家里另一台电脑也能ping得通
$ ping 120.92.205.139
PING 120.92.205.139 (120.92.205.139) 56(84) bytes of data.
64 bytes from 120.92.205.139: icmp_req=1 ttl=64 time=0.460 ms

ping网关ping不通
$ ping 120.92.192.1
PING 120.92.192.1 (120.92.192.1) 56(84) bytes of data.
停在那,啥都不显示

查看另一台电脑和网关的物理地址能看到:
$ sudo arp -n
Address HWtype HWaddress Flags Mask Iface
120.92.205.139 ether 00:1b:38:99:c9:9e C eth0
120.92.192.1 ether 00:13:5f:03:e4:98 C eth0

看来问题在于无法连接到网关,这是怎么回事?有什么解决方法?谢谢
回复