我在台式机上使用 Ubuntu 14.04(最近从 Ubuntu 13.10 全新安装)。自升级以来,我的系统开始出现浏览时间歇性断开连接的奇怪行为。在那个特定时刻,ping 代理服务器超时,数据包丢失超过 80%,或无法访问。在此期间,LAN 连接处于“已连接”状态,但只有在我重置它后才能开始工作。
数据包丢失示例
user@user-desktop:~$ ping 192.168.0.51 PING 192.168.0.51
(192.168.0.51) 56(84) bytes of data.
64 bytes from 192.168.0.51: icmp_seq=13 ttl=128 time=0.283 ms
64 bytes from 192.168.0.51: icmp_seq=14 ttl=128 time=0.275 ms
64 bytes from 192.168.0.51: icmp_seq=15 ttl=128 time=0.303 ms
64 bytes from 192.168.0.51: icmp_seq=16 ttl=128 time=0.272 ms
64 bytes from 192.168.0.51: icmp_seq=17 ttl=128 time=0.302 ms
64 bytes from 192.168.0.51: icmp_seq=18 ttl=128 time=0.509 ms
64 bytes from 192.168.0.51: icmp_seq=19 ttl=128 time=0.570 ms
64 bytes from 192.168.0.51: icmp_seq=20 ttl=128 time=0.211 ms ^?^C
--- 192.168.0.51 ping statistics ---
40 packets transmitted, 8 received, 80% packet loss, time 39100ms rtt
min/avg/max/mdev = 0.211/0.340/0.570/0.120 ms
主机不可达示例
user@user-desktop:~$ ping 192.168.0.51
PING 192.168.0.51 (192.168.0.51) 56(84) bytes of data.
From 192.168.1.206 icmp_seq=1 Destination Host Unreachable
From 192.168.1.206 icmp_seq=2 Destination Host Unreachable
From 192.168.1.206 icmp_seq=3 Destination Host Unreachable
From 192.168.1.206 icmp_seq=4 Destination Host Unreachable
From 192.168.1.206 icmp_seq=5 Destination Host Unreachable
From 192.168.1.206 icmp_seq=6 Destination Host Unreachable
From 192.168.1.206 icmp_seq=7 Destination Host Unreachable
From 192.168.1.206 icmp_seq=8 Destination Host Unreachable
From 192.168.1.206 icmp_seq=9 Destination Host Unreachable
From 192.168.1.206 icmp_seq=10 Destination Host Unreachable
From 192.168.1.206 icmp_seq=11 Destination Host Unreachable
From 192.168.1.206 icmp_seq=12 Destination Host Unreachable
--- 192.168.0.51 ping statistics ---
13 packets transmitted, 0 received, +12 errors, 100% packet loss, time 12051ms
网络信息
user@user-desktop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 78:ac:c0:bb:67:d4
inet addr:192.168.1.206 Bcast:192.168.1.255 Mask:255.255.254.0
inet6 addr: fe80::7aac:c0ff:febb:67d4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:240643 errors:0 dropped:0 overruns:0 frame:0
TX packets:223734 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:25537053 (25.5 MB) TX bytes:17135945 (17.1 MB)
Interrupt:19 Memory:f0100000-f0120000
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:65536 Metric:1
RX packets:478 errors:0 dropped:0 overruns:0 frame:0
TX packets:478 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:67030 (67.0 KB) TX bytes:67030 (67.0 KB)
答案1
如果你使用无线路由器的wifi,我建议你将无线路由器的无线信道更改为另一个不常见的信道。因为Ubuntu的NIC驱动程序不完善
答案2
我也看到了同样的情况。运行 13.10 及之前的版本时连接稳定。全新安装 14.4 后,互联网非常不稳定。
我发现,如果我设置了连续 ping,我就能可靠地浏览网页,并且连接保持活动状态。如果没有 ping,它的行为就像无线网络完全关闭,直到下一个数据请求,然后它必须重新协商连接,从而造成严重的延迟。
事实上,如果没有 ping,我甚至无法运行 apt-get update。
虽然这不是一个完整的解决方案,但是它可以帮助我继续前进,直到找到真正的解决方案。