Koozali.org: home of the SME Server

Unstable internet connection after upgrade

Offline RDMidtun

  • *
  • 27
  • +0/-0
Unstable internet connection after upgrade
« on: August 08, 2021, 05:57:12 PM »
Ever since I upgraded my server/gateway from 9.2 to 10, my internet has been unstable for the server clients. When using a netbrowser from one of the clients, a webpage can be available. Trying to reload the same page a few seconds later fails and is than available a few seconds later again. It does not help to specify the webpage by the ip address. How do I troubleshoot this? Are there any parameters to the network drivers that can be tweaked? Below are dmesg output related to my network.

Code: [Select]
[root@e-smith ~]# dmesg | grep e1000
[    0.000000] efi: mem238: type=6, attr=0x800000000000000f, range=[0x00000000d9879000-0x00000000d9ee1000) (6MB)
[    0.000000] efi: mem239: type=6, attr=0x800000000000000f, range=[0x00000000d9ee1000-0x00000000d9ee3000) (0MB)
[    0.199894] pci 0000:00:1b.0: reg 0x10: [mem 0xf7e10000-0xf7e13fff 64bit]
[    8.829022] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[    8.829025] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    8.829185] e1000 0000:04:00.0: enabling device (0000 -> 0003)
[    9.260565] e1000 0000:04:00.0 eth0: (PCI:33MHz:32-bit) 90:e2:ba:d7:c3:7b
[    9.260569] e1000 0000:04:00.0 eth0: Intel(R) PRO/1000 Network Connection
[   21.548431] e1000: enp4s0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
[ 3128.131750] e1000: enp4s0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
[root@e-smith ~]# dmesg | grep r8169
[    8.913797] r8169 0000:02:00.0: irq 28 for MSI/MSI-X
[    8.940250] libphy: r8169: probed
[    8.940637] r8169 0000:02:00.0 eth0: RTL8168g/8111g, d4:3d:7e:bf:40:72, XID 4c0, IRQ 28
[    8.940639] r8169 0000:02:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[   17.273198] Generic Realtek PHY r8169-200:00: attached PHY driver [Generic Realtek PHY] (mii_bus:phy_addr=r8169-200:00, irq=-2)
[   19.972179] libphy: r8169-200:00 - Link is Up - 1000/Full
[ 3123.865568] Generic Realtek PHY r8169-200:00: attached PHY driver [Generic Realtek PHY] (mii_bus:phy_addr=r8169-200:00, irq=-2)
[ 3126.557044] libphy: r8169-200:00 - Link is Up - 1000/Full
[root@e-smith ~]#


Offline RDMidtun

  • *
  • 27
  • +0/-0
Re: Unstable internet connection after upgrade
« Reply #2 on: August 09, 2021, 06:53:14 PM »
you have 8168 eth adapter. pleade use the the 8168 driver not the default 8169.

Did the following:
Code: [Select]
[root@e-smith ~]# wget https://elrepo.org/linux/elrepo/el7/x86_64/RPMS/kmod-r8168-8.048.00-1.el7_7.elrepo.x86_64.rpm
[root@e-smith ~]# yum install kmod-r8168-8.048.00-1.el7_7.elrepo.x86_64.rpm
[root@e-smith ~]# reboot
[root@e-smith ~]# dmesg | grep r81
[    0.000000] percpu: Embedded 38 pages/cpu s118784 r8192 d28672 u524288
[    0.000000] pcpu-alloc: s118784 r8192 d28672 u524288 alloc=1*2097152
[    9.756634] r8168: loading out-of-tree module taints kernel.
[    9.757289] r8168: module verification failed: signature and/or required key missing - tainting kernel
[    9.758276] r8168 Gigabit Ethernet driver 8.048.00-NAPI loaded
[    9.758284] r8168 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control
[    9.758388] r8168 0000:02:00.0: irq 30 for MSI/MSI-X
[    9.772221] r8168: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625.
[    9.774227] r8168  Copyright (C) 2019  Realtek NIC software team <nicfae@realtek.com>
[   21.021692] r8168: enp2s0: link up


Problem is the same, no difference.

Any idea on how to proceed troubleshooting?

Offline RDMidtun

  • *
  • 27
  • +0/-0
Re: Unstable internet connection after upgrade
« Reply #3 on: August 09, 2021, 09:07:07 PM »
As a part of the trouble shooting, I turned on using the google 8.8.8.8 DNS server as a primary DNS server. When removing this and reverting back to using my server as the DNS server for internet router, the internet connection stabilized. 

To conclude, I think the first problems I saw was related to the faulty r8169 ether net driver. After fixing the driver, the problems was related to using and external name server. Using external name server was probably causing a delay.

Anyway, it now seems to work OK. Thanks to Jean-Philippe for informing about the driver problem!

Offline Jean-Philippe Pialasse

  • *
  • 2,763
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Unstable internet connection after upgrade
« Reply #4 on: August 09, 2021, 09:38:45 PM »
just thanks bunkobugsy for working on this behind the scene   

last version thanks to him reporting this was missing for last kernel.

https://elrepo.org/linux/elrepo/el7/x86_64/RPMS/kmod-r8168-8.049.02-1.el7_9.elrepo.x86_64.rpm