![Ubuntu 18.04 LTS 下有线互联网连接不稳定](https://linux22.com/image/1170571/Ubuntu%2018.04%20LTS%20%E4%B8%8B%E6%9C%89%E7%BA%BF%E4%BA%92%E8%81%94%E7%BD%91%E8%BF%9E%E6%8E%A5%E4%B8%8D%E7%A8%B3%E5%AE%9A.png)
我最近买了一台新笔记本,安装了 Ubuntu 18.04 LTS。几个月来,一切都运行良好,但突然以太网连接“断了”。这并不是说我根本无法连接到互联网,更像是它极度不稳定。感觉有点像有什么东西试图挤过瓶颈:如果连接成功,速度会和网络和以太网适配器允许的速度一样快(最高 1 GBit)——但大多数时候我都会遇到超时错误。我也可以通过我们当地超级计算中心的速度测试来复制这种情况(http://ping.lrz.de/speedtest/)。偶尔我会同时获得上行和下行的全速,但下一次我只能在一个方向上获得 30% 的带宽,下一次速度测试根本无法启动,即页面http://ping.lrz.de/speedtest/不更新数字。
有趣的是:WiFi 连接运行顺畅。以太网连接与其他(基于 Windows 的)计算机运行良好。
以下是一些信息:
lshw -C network
....
*-network:1
description: Ethernet interface
product: Ethernet Connection (6) I219-LM
vendor: Intel Corporation
physical id: 1f.6
bus info: pci@0000:00:1f.6
logical name: enp0s31f6
version: 30
serial: 68:84:7e:6a:fb:4d
size: 1Gbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.4-3 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:148 memory:92300000-9231ffff
*-network DISABLED
description: Ethernet interface
physical id: 1
logical name: wwp0s20f0u5i12
serial: 2a:f8:15:92:14:3f
capabilities: ethernet physical
configuration: broadcast=yes driver=cdc_mbim driverversion=22-Aug-2005 firmware=CDC MBIM link=no multicast=yes
inxi -Fxxxz
....
Network: Card-1: Intel Cannon Point-LP CNVi [Wireless-AC]
driver: iwlwifi bus-ID: 00:14.3 chip-ID: 8086:9df0
IF: wlp0s20f3 state: up mac: <filter>
Card-2: Intel Ethernet Connection (6) I219-LM
driver: e1000e v: 3.2.6-k bus-ID: 00:1f.6 chip-ID: 8086:15bd
IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter>
....
lspci -nnk | grep -A2 Ethernet
00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection (6) I219-LM [8086:15bd] (rev 30)
Subsystem: Fujitsu Client Computing Limited Ethernet Connection (6) I219-LM [1e26:001a]
Kernel driver in use: e1000e
Kernel modules: e1000e
我已经尝试过的一个解决方案是运行
sudo apt-get update
sudo apt-get install r8168-dkms
但重启后没有任何效果。我还能尝试其他方法吗?这是一个相当烦人的问题……
附言:当然,我已经检查过问题是否出在电缆上——不是!
更新:
是否进行了数据包丢失测试packetlosstest.com。使用默认设置进行了两次。第一次:总数据包丢失率为 49.7%。几分钟后:总数据包丢失率为 0.0%。这正是我所经历的不稳定性。
我也签了dmesg | grep e1000e
。它返回
[ 1.988998] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 1.988999] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 1.989340] e1000e 0000:00:1f.6: Interrupt Throttling Rate (ints/sec) set to dynamic conservative mode
[ 2.068698] e1000e 0000:00:1f.6 0000:00:1f.6 (uninitialized): registered PHC clock
[ 2.135741] e1000e 0000:00:1f.6 eth0: (PCI Express:2.5GT/s:Width x1) 68:84:7e:6a:fb:4d
[ 2.135741] e1000e 0000:00:1f.6 eth0: Intel(R) PRO/1000 Network Connection
[ 2.135870] e1000e 0000:00:1f.6 eth0: MAC: 13, PHY: 12, PBA No: FFFFFF-0FF
[ 2.136406] e1000e 0000:00:1f.6 enp0s31f6: renamed from eth0
[ 14.066731] e1000e: enp0s31f6 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
我的内核是(uname -rv
):
5.3.0-28-generic #30~18.04.1-Ubuntu SMP Fri Jan 17 06:14:09 UTC 2020