Realtek R8169 驱动程序 Ubuntu 20.04(带 RTL8111/8168/8411 PCI Express 千兆以太网控制器(rev 0c))

Realtek R8169 驱动程序 Ubuntu 20.04(带 RTL8111/8168/8411 PCI Express 千兆以太网控制器(rev 0c))

自去年秋天以来,我一直在研究一些以太网问题,我认为我最终将其缩小到驱动程序/内核问题。

我在这里开了一些其他的帖子:

使用 Firefox 和 Chromium 时,网站加载速度有时会很慢

resolv.conf 和偶尔出现的慢速主机解析(DNS 问题)-Ubuntu 20.04

网站偶尔需要几秒钟才能开始加载 - 解决主机名 - DNS 问题?

使用板载 REALTEK 以太网(主板:MSI 型号:H81M-E34 (MS-7817) v: 3.0,BIOS:American Megatrends v: 17.5 日期:2015 年 3 月 30 日)上网时,网站偶尔会在 5 秒甚至 10 秒后加载,因为 DNS 响应有时需要 5 秒或更长时间。我安装了 wireshark 并发现这是由于超时(DNS 或 TCP)造成的。使用外部 USB 以太网适配器时,它工作正常,所以我的网络配置没问题。

使用 Manjaro 或 Ubuntu 20.04 实时映像时,我遇到了同样的问题。但是,使用 Debian Buster 映像时不会出现此类问题。对于 Debian,我还没有进行过广泛的测试,但在使用过程中一切正常。我也从 Buster 切换到了 Ubuntu 20.04,之前没有发现 Debian Buster 存在此类问题,所以这一切都是一致的。

作为一种解决方案,我当然可以使用外部适配器,但如果我能让内部以太网再次工作,那就更好了。

是否有其他人在较新的内核中观察到 Realtek 8169 驱动程序的类似问题,安装 dkms-8168 驱动程序是否有帮助?我还没有这样做,因为我读到人们在安装甚至清除驱动程序后都没有互联网。或者我应该使用较新的内核?

有关我的硬件的更多信息:

    Kernel: 5.4.0-62-lowlatency x86_64 bits: 64 Desktop: Xfce 4.14.2 
           Distro: Ubuntu 20.04.1 LTS (Focal Fossa) 
Machine:   Type: Desktop Mobo: MSI model: H81M-E34 (MS-7817) v: 3.0 serial: <superuser/root required> 
           BIOS: American Megatrends v: 17.5 date: 03/30/2015 
CPU:       Topology: Quad Core model: Intel Core i5-4460 bits: 64 type: MCP L2 cache: 6144 KiB 
           Speed: 3335 MHz min/max: 800/3400 MHz Core speeds (MHz): 1: 3354 2: 3395 3: 3376 4: 3318 
Graphics:  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics driver: i915 v: kernel 
           Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 4600 (HSW GT2) v: 4.5 Mesa 20.2.6 
Audio:     Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio driver: snd_hda_intel 
           Device-2: BEHRINGER UMC204HD 192k type: USB driver: snd-usb-audio 
           Device-3: AKAI Professional M.I. type: USB driver: hid-generic,snd-usb-audio,usbhid 
           Sound Server: ALSA v: k5.4.0-62-lowlatency 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
           IF: enp2s0 state: down mac: d8:cb:8a:e8:e9:99 
           Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152 
           IF: enx00e04c000176 state: up speed: 1000 Mbps duplex: full mac: 00:e0:4c:00:01:76 
Drives:    Local Storage: total: 537.79 GiB used: 97.03 GiB (18.0%) 
           ID-1: /dev/sda vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB 
           ID-2: /dev/sdb type: USB vendor: Samsung model: Portable SSD T5 size: 232.89 GiB 
           ID-3: /dev/sdc type: USB vendor: Transcend model: JetFlash Transcend 16GB size: 14.71 GiB 
           ID-4: /dev/sdd type: USB vendor: SanDisk model: Ultra size: 57.30 GiB 
Partition: ID-1: / size: 36.41 GiB used: 12.32 GiB (33.8%) fs: ext4 dev: /dev/sda1 
           ID-2: /home size: 184.23 GiB used: 84.71 GiB (46.0%) fs: ext4 dev: /dev/sda6 
           ID-3: swap-1 size: 7.45 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda5 
Sensors:   System Temperatures: cpu: 30.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 221 Uptime: 1h 08m Memory: 7.23 GiB used: 2.93 GiB (40.6%) Shell: bash inxi: 3.0.38 

相关内容