Ethernet connection no longer working today

An update from yesterday seems to have stopped my ethernet from working (connection is definitely OK). The system should be using the r8168 module but lspci -v shows no r8168 kernel driver in use and only the r8169 module as being available.

Any help would be much appreciated.

What is your ethernet?

inxi -Na

Thanks for the reply. inxi -Na gives:

Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Dell driver: N/A modules: r8169 pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 01:00.0 chip-ID: 10ec:8168
class-ID: 0200

Are you sure that the r8168 package isn’t installed?

pacman -Qi r8168

Edit: Was it running on the r8168 module previously? Because that is a package that gets installed. The r8169 is kernel module. If it’s not installed and requires it you can install it and reboot to see if it works. Some of these models of Ethernet work on either module or both. Some only work on one or the other or have issues on one or the other.

pacman -Qi r8168 gives:

Name : r8168
Version : 8.050.00-4
Description : A kernel module for Realtek 8168 network cards
Architecture : x86_64
URL : http://www.realtek.com.tw
Licenses : GPL
Groups : None
Provides : None
Depends On : glibc linux
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 85.26 KiB
Packager : Jan Alexander Steffens (heftig) heftig@archlinux.org
Build Date : Wed 11 May 2022 00:26:19 BST
Install Date : Thu 12 May 2022 09:28:52 BST
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature

What says

lsmod | grep r81

?

Hello folks, please pardon the intrusion, but I’ve got a similar problem.
First of all, my solution: I’ve r8168 installed, so every time it ‘breaks’ I do

**# sed -i /usr/lib/modprobe.d/r8168.conf -e 's|r8169|r8168|'**
followed by 
**# modprobe r8169**

Hope this can help: my question, tough is WHY this happens every so often, and above all if there is any way ti fix it permanently.

Thanks for your attention,
Piero

2 Likes

Many thanks, Piero - that worked perfectly!

My guess is, very occasionally the update delivers a new r8168 package but for some reason doesn’t also include the relevant kernel packages. The result is a mismatch that causes the networking to fail.

1 Like

If package r8168 is needed, the (re)install it and reboot.
If not, then uninstall package r8168 and reboot.

Note that r8169 kernel module is the default what a fresh EndeavourOS install provides (with the latest ISO).

Glad if it helps.

Wonder ‘what if’ I just get rid of r8169 and\or IgnorePkg=r8169 in pacman.conf - but I’m not feeling too brave. At least for now :wink:

You could try blacklisting it:

https://wiki.archlinux.org/title/Kernel_module#Blacklisting

1 Like

It’s obvious it was installed but Ethernet was not working so it should be removed or you’ll just have the same issue again when it gets updated. Your Ethernet works on the kernel module r8169.

1 Like

I’ve got so much to learn - luckily - : did not know anything about

install module_name /bin/true

, for instance. Luv 'ya

1 Like

This works only temporarily, until the next update of package r8168.
A permanent solution is to uninstall package r8168.

2 Likes

Thanks, I’ve followed your advice and removed the r8168 package. Hope this means I shouldn’t have any future issues.

1 Like

In facts: and so I’ve done today - at last. So appreciated.

2 Likes

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