Ethernet Not Working

Issue Description:
I have installed EndeavourOS on my Tuxedo Laptop. However, I can’t seem to get Ethernet to work. When I plug in an ethernet cable, it says that there is a wired connection that the system is trying to connect to but after a couple of minutes, it stops. What can I do to remidy this? (r8169 is installed and not blacklisted and r8168 has never been installed, as that seems to be a common source of problems here, having used the search mode).

Any help would be greatly appreciated.

Helpful outputs:

uname -a
uname -a
Linux tux01 6.4.12-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 24 Aug 2023 00:38:14 +0000 x86_64 GNU/Linux
hwinfo --network
hwinfo --network
47: None 00.0: 10701 Ethernet
  [Created at net.126]
  Unique ID: Ij4C.ndpeucax6V1
  Parent ID: c3qJ.9MOjLjRhj41
  SysFS ID: /class/net/enp2s0
  SysFS Device Link: /devices/pci0000:00/0000:00:01.2/0000:02:00.0
  Hardware Class: network interface
  Model: "Ethernet network interface"
  Driver: "r8169"
  Driver Modules: "r8169"
  Device File: enp2s0
  HW Address: b0:25:aa:48:31:a2
  Permanent HW Address: b0:25:aa:48:31:a2
  Link detected: no
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #6 (Ethernet controller)

48: None 00.0: 10700 Loopback
  [Created at net.126]
  Unique ID: ZsBS.GQNx7L4uPNA
  SysFS ID: /class/net/lo
  Hardware Class: network interface
  Model: "Loopback network interface"
  Device File: lo
  Link detected: yes
  Config Status: cfg=new, avail=yes, need=no, active=unknown

49: None 00.0: 1070a WLAN
  [Created at net.126]
  Unique ID: AYEt.QXn1l67RSa1
  Parent ID: y9sn.o_xLA3Zg0GC
  SysFS ID: /class/net/wlan0
  SysFS Device Link: /devices/pci0000:00/0000:00:02.2/0000:04:00.0
  Hardware Class: network interface
  Model: "WLAN network interface"
  Driver: "iwlwifi"
  Driver Modules: "iwlwifi"
  Device File: wlan0
  HW Address: 62:08:1f:23:de:a2
  Permanent HW Address: b0:a4:60:6f:b1:d4
  Link detected: no
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #27 (Network controller)
inxi -Na
inxi -Na
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: Tongfang Hongkong driver: r8169
    v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1 port: e000 bus-ID: 02:00.0
    chip-ID: 10ec:8125 class-ID: 0200
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 8086:2723 class-ID: 0280
journalctl -b | grep r8169
journalctl -b | grep r8169
Sep 01 10:33:51 tux01 kernel: r8169 0000:02:00.0 eth0: RTL8125B, b0:25:aa:48:31:a2, XID 641, IRQ 69
Sep 01 10:33:51 tux01 kernel: r8169 0000:02:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
Sep 01 10:33:51 tux01 kernel: r8169 0000:02:00.0 enp2s0: renamed from eth0
Sep 01 10:33:54 tux01 kernel: RTL8226B_RTL8221B 2.5Gbps PHY r8169-0-200:00: attached PHY driver (mii_bus:phy_addr=r8169-0-200:00, irq=MAC)
Sep 01 10:33:54 tux01 kernel: r8169 0000:02:00.0 enp2s0: Link is Down
Sep 01 10:37:19 tux01 kernel: r8169 0000:02:00.0 enp2s0: Link is Up - 1Gbps/Full - flow control rx/tx
Sep 01 10:37:29 tux01 kernel: NETDEV WATCHDOG: enp2s0 (r8169): transmit queue 0 timed out 9750 ms
Sep 01 10:37:29 tux01 kernel:  kvm_amd i2c_algo_bit iwlwifi videobuf2_common snd_pci_acp6x snd_hwdep drm_suballoc_helper drm_ttm_helper ecdh_generic mc r8169 snd_pcm ttm kvm asus_wmi irqbypass snd_pci_acp5x drm_display_helper ledtrig_audio snd_timer realtek cfg80211 rapl platform_profile snd_rn_pci_acp3x pcspkr wmi_bmof k10temp snd mdio_devres acpi_cpufreq snd_acp_config cec snd_soc_acpi soundcore i2c_piix4 snd_pci_acp3x libphy rfkill amd_pmc joydev mousedev mac_hid fuse loop ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 dm_crypt cbc encrypted_keys trusted asn1_encoder tee usbhid uas usb_storage vboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE) pkcs8_key_parser nvidia_drm(POE) nvidia_uvm(POE) nvidia_modeset(POE) serio_raw atkbd crct10dif_pclmul crc32_pclmul libps2 nvme crc32c_intel vivaldi_fmap ucsi_acpi polyval_clmulni nvme_core hid_multitouch i8042 uniwill_wmi(OE) typec_ucsi polyval_generic clevo_wmi(OE) tuxedo_io(OE) tuxedo_keyboard(OE) led_class_multicolor gf128mul sparse_keymap ghash_clmulni_intel sha512_ssse3 aesni_intel
Sep 01 10:37:29 tux01 kernel: r8169 0000:02:00.0 enp2s0: ASPM disabled on Tx timeout
Sep 01 10:37:54 tux01 kernel: r8169 0000:02:00.0 enp2s0: Link is Down
ls /usr/lib/modprobe.d/
ls /usr/lib/modprobe.d/
bluetooth-usb.conf  nvidia-utils.conf  README  systemd.conf
lsmod | grep r816
lsmod | grep r816
r8169                 114688  0
mdio_devres            12288  1 r8169
libphy                212992  3 r8169,mdio_devres,realtek

Edit (2023-09-01T11:45Z): Improved Formatting

You could try installing r8168 and then reboot.
If that helps, then great.
But if not, you can simply uninstall r8168 and reboot again.

AUR has r8125-dkms, so you could try that too. Likely you need to blacklist r8169 when using this. It requires kernel headers so install it too unless you already have it.

Note that when driver changes, a reboot is always recommended.

A similar issue has been fixed in the Arch forum

https://bbs.archlinux.org/viewtopic.php?pid=1914069#p1914069

I think this has already been mentioned in the above post.

Sure, you’re right but the link I posted also explains how to blacklist other modules and how to check that the correct module is loaded. I thought it might be useful.

It’s not a problem. Sometimes even i respond to a post not having realized it was already pointed out. Thought maybe you missed it. :innocent:

Hello, thank you for your recommendations. I will try them out on Monday when I next have access to an ethernet cable.

Okay, so that unfortunately didn’t work. The r8125-dkms module worked just as good as the r8169 (ie it realised that there is supposed to be a connection and tries to establish it but then fails after a while). The r8168 module, on the other hand, wasn’t even recognised as being responsible for ethernet (it did load, as far as I can tell, just not associated with my network card).

Here’s the output for r8125-dkms (I blacklisted r8169):

Output
chatroomcitizen794@tux01:~$ hwinfo --network
63: None 00.0: 1070a WLAN                                       
  [Created at net.126]
  Unique ID: AYEt.QXn1l67RSa1
  Parent ID: y9sn.o_xLA3Zg0GC
  SysFS ID: /class/net/wlan0
  SysFS Device Link: /devices/pci0000:00/0000:00:02.2/0000:04:00.0
  Hardware Class: network interface
  Model: "WLAN network interface"
  Driver: "iwlwifi"
  Driver Modules: "iwlwifi"
  Device File: wlan0
  HW Address: b0:a4:60:6f:b1:d4
  Permanent HW Address: b0:a4:60:6f:b1:d4
  Link detected: yes
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #27 (Network controller)

64: None 00.0: 10700 Loopback
  [Created at net.126]
  Unique ID: ZsBS.GQNx7L4uPNA
  SysFS ID: /class/net/lo
  Hardware Class: network interface
  Model: "Loopback network interface"
  Device File: lo
  Link detected: yes
  Config Status: cfg=new, avail=yes, need=no, active=unknown

65: None 00.0: 10701 Ethernet
  [Created at net.126]
  Unique ID: Ij4C.ndpeucax6V1
  Parent ID: c3qJ.9MOjLjRhj41
  SysFS ID: /class/net/enp2s0
  SysFS Device Link: /devices/pci0000:00/0000:00:01.2/0000:02:00.0
  Hardware Class: network interface
  Model: "Ethernet network interface"
  Driver: "r8125"
  Driver Modules: "r8125"
  Device File: enp2s0
  HW Address: b0:25:aa:48:31:a2
  Permanent HW Address: b0:25:aa:48:31:a2
  Link detected: yes
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #6 (Ethernet controller)

chatroomcitizen794@tux01:~$ inxi -Na
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: Tongfang Hongkong driver: r8125
    v: 9.011.01-NAPI modules: r8169 pcie: gen: 2 speed: 5 GT/s lanes: 1
    port: e000 bus-ID: 02:00.0 chip-ID: 10ec:8125 class-ID: 0200
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 8086:2723 class-ID: 0280
chatroomcitizen794@tux01:~$ journalctl -b | grep r8125
Sep 04 09:26:11 tux01 kernel: r8125 2.5Gigabit Ethernet driver 9.011.01-NAPI loaded
Sep 04 09:26:11 tux01 kernel: r8125: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625.
Sep 04 09:26:11 tux01 kernel: r8125  Copyright (C) 2022 Realtek NIC software team <nicfae@realtek.com> 
Sep 04 09:26:11 tux01 kernel: r8125 0000:02:00.0 enp2s0: renamed from eth0
Sep 04 09:26:17 tux01 kernel: r8125: enp2s0: link up

chatroomcitizen794@tux01:~$ lsmod | grep r81
r8125                 270336  0

And here’s the output for the r8168 (the r8168.conf in modules-load.d forces it to load; the r8168.conf in modprobe.d was automatically generated and blacklisted r8169):

Output
chatroomcitizen794@tux01:~$ ls /usr/lib/modprobe.d/
bluetooth-usb.conf  nvidia-utils.conf  r8168.conf  README  systemd.conf
chatroomcitizen794@tux01:~$ ls /usr/lib/mod
modprobe.d/     modules/        modules-load.d/ 
chatroomcitizen794@tux01:~$ ls /usr/lib/modules-load.d/
bluez.conf  nvidia-utils.conf  pkcs8.conf  r8168.conf  virtualbox-host-modules-arch.conf
chatroomcitizen794@tux01:~$ cat /usr/lib/modprobe.d/r8168.conf 
blacklist r8169
chatroomcitizen794@tux01:~$ cat /usr/lib/modules-load.d/
bluez.conf                         pkcs8.conf                         virtualbox-host-modules-arch.conf
nvidia-utils.conf                  r8168.conf                         
chatroomcitizen794@tux01:~$ cat /usr/lib/modules-load.d/r8168.conf 
r8168
chatroomcitizen794@tux01:~$ hwinfo --network
70: None 00.0: 1070a WLAN                                       
  [Created at net.126]
  Unique ID: AYEt.QXn1l67RSa1
  Parent ID: y9sn.o_xLA3Zg0GC
  SysFS ID: /class/net/wlan0
  SysFS Device Link: /devices/pci0000:00/0000:00:02.2/0000:04:00.0
  Hardware Class: network interface
  Model: "WLAN network interface"
  Driver: "iwlwifi"
  Driver Modules: "iwlwifi"
  Device File: wlan0
  HW Address: b0:a4:60:6f:b1:d4
  Permanent HW Address: b0:a4:60:6f:b1:d4
  Link detected: yes
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #27 (Network controller)

71: None 00.0: 10700 Loopback
  [Created at net.126]
  Unique ID: ZsBS.GQNx7L4uPNA
  SysFS ID: /class/net/lo
  Hardware Class: network interface
  Model: "Loopback network interface"
  Device File: lo
  Link detected: yes
  Config Status: cfg=new, avail=yes, need=no, active=unknown

72: None 00.0: 10701 Ethernet
  [Created at net.126]
  Unique ID: usDW.ndpeucax6V1
  SysFS ID: /class/net/eth0
  SysFS Device Link: /devices/pci0000:00/0000:00:08.1/0000:06:00.4/usb4/4-1/4-1.4/4-1.4.1/4-1.4.1:1.5
  Hardware Class: network interface
  Model: "Ethernet network interface"
  Driver: "cdc_ncm"
  Driver Modules: "cdc_ncm"
  Device File: eth0
  HW Address: 0c:37:96:91:1f:25
  Permanent HW Address: 0c:37:96:91:1f:25
  Link detected: no
  Config Status: cfg=new, avail=yes, need=no, active=unknown
chatroomcitizen794@tux01:~$ inxi -Na
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: Tongfang Hongkong driver: N/A
    modules: r8169 pcie: gen: 2 speed: 5 GT/s lanes: 1 port: e000
    bus-ID: 02:00.0 chip-ID: 10ec:8125 class-ID: 0200
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 8086:2723 class-ID: 0280
chatroomcitizen794@tux01:~$ journalctl -b | grep r81
Sep 04 09:45:42 tux01 kernel: percpu: Embedded 64 pages/cpu s225280 r8192 d28672 u262144
Sep 04 09:45:42 tux01 kernel: pcpu-alloc: s225280 r8192 d28672 u262144 alloc=1*2097152
Sep 04 09:46:00 tux01 systemd-modules-load[749]: Inserted module 'r8168'
chatroomcitizen794@tux01:~$ lsmod | grep r816
r8168                 245760  0
chatroomcitizen794@tux01:~$ 

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.