我有一台华硕 Zephyrus M15 GU502LW,装有 Ubuntu 21.10 和 Windows 10。
在 Ubuntu 上,我经常会失去与互联网的连接。如果浏览器或 cmd 工具正在使用该连接,则对 Google 和路由器的 ping 会同时失败,大约 3 个程序包,每分钟或更长时间。
我检查了一下,我的设备或路由器中没有设置静态 IP,所以我不怀疑 DHCP 问题。我直接连接到我的 ISP 路由器(sagecom FAST3686),这在 Windows 或 WiFi 上不会发生,所以我假设它与驱动程序有关
我不知道该怎么解决这个问题。我找到了很多其他人的帖子,他们都遇到了这个问题,但他们通过安装 r8168 驱动程序解决了这个问题,据说它们只适用于内核 5.6 以下,而我正在运行的是较新的版本。
~ $ sudo lshw -c network (base)
*-network DESACTIVADO
descripción: Interfaz inalámbrica
producto: Comet Lake PCH CNVi WiFi
fabricante: Intel Corporation
id físico: 14.3
información del bus: pci@0000:00:14.3
nombre lógico: wlo1
versión: 00
serie: 3c:9c:0f:f6:c1:a1
anchura: 64 bits
reloj: 33MHz
capacidades: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
configuración: broadcast=yes driver=iwlwifi driverversion=5.13.0-39-generic firmware=63.c04f3485.0 QuZ-a0-hr-b0-63.u latency=0 link=no multicast=yes wireless=IEEE 802.11
recursos: iomemory:600-5ff irq:16 memoria:6044018000-604401bfff
*-network
descripción: Ethernet interface
producto: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
fabricante: Realtek Semiconductor Co., Ltd.
id físico: 0
información del bus: pci@0000:3d:00.0
nombre lógico: eno2
versión: 15
serie: f0:2f:74:46:0c:0d
tamaño: 100Mbit/s
capacidad: 1Gbit/s
anchura: 64 bits
reloj: 33MHz
capacidades: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuración: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.13.0-39-generic duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.0.3 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
recursos: irq:18 ioport:3000(size=256) memoria:98204000-98204fff memoria:98200000-98203fff
~ $ ifconfig (base)
eno2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.3 netmask 255.255.255.0 broadcast 192.168.0.255
ether f0:2f:74:46:0c:0d txqueuelen 1000 (Ethernet)
RX packets 2180471 bytes 2729748335 (2.7 GB)
RX errors 0 dropped 772 overruns 0 frame 0
TX packets 315405 bytes 32702503 (32.7 MB)
TX errors 3 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Bucle local)
RX packets 58739 bytes 6195440 (6.1 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 58739 bytes 6195440 (6.1 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
~ $ lspci
3d:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
~ $ uname --all
Linux Mauro-Linux 5.13.0-39-generic #44-Ubuntu SMP Thu Mar 24 15:35:05 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
答案1
来自评论...
tamaño: 100Mbit/s
capacidad: 1Gbit/s
由于链接速度只有 100Mbit/s,我怀疑是电缆问题。我们更换了电缆,链接速度如预期的那样变成了 1Gbit/s。