Internet works on wifi, live ISO and Windows laptop but wont work on ethernet on current system

Hi I just got a new broadband connection and it seems to be not working via ethernet. It is working on wifi and when I boot the computer using a live usb of an older version of Manjaro (I think 18.0.4) and is working fine on Windows 10 laptop as well.

I have tried changing changing the kernel from 5.10.18-1 to 5.11.1-1 as well and noticed no changes. Here’s the output for inxi -Nazy

$ inxi -Nazy
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Gigabyte driver: r8169 v: kernel port: f000 bus ID: 04:00.0 
  chip ID: 10ec:8168 class ID: 0200 

Any help?

Hi @xalexander ,
Please read what @megavolt wrote on the following post in order to see what is happening to the ethernet port.
Ethernet disappeared after trying to update

Hope it help, regards.

Hello @xalexander :wink:

What makes you believe that it is not working? According to your inxi output it is correctly detected…

Worth a try would be installing r8168 and blacklist r8169.

pamac build r8168-dkms

and create blacklist.conf at /etc/modprobe.d/ wiith the content:

blacklist r8169

After reboot, check again with which driver is in use with inxi and if it is working.

This is already available through the official repos, in Manjaro Settings → Hardware

I have similar chipset on a B450 motherboard, and it works with r8169 or r8168, but sometimes when I reboot from XXX situation (still not determined) the network is not working at all on reboot, it loops trying to reconnect but it fails. I eventually simply reboot on Windows 7 then directly back to Manjaro, or shutdown and unplug everything for a moment (router, computer, BPL, everything) and restart everything. In my case it is not that often and 99% of the time it works.

From memory this is an issue with the network controller, the drivers, and how it can stay in some weird state for some reason (I know it is vague and not documented but basically if the issue I’m talking about is the same, not much to do from my findings).

$ lspci | grep -i net
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)

Tried this but it is not working

$ inxi -Nazy
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Gigabyte driver: N/A modules: r8169 port: f000 bus ID: 04:00.0 
  chip ID: 10ec:8168 class ID: 0200

Is the module installed?

 modinfo r8168

Did you blacklist r8169 ?

for x in /etc/modprobe.d/*; do echo -e "\n--- $x ---\n$(cat $x)"; done

Did you reboot your system?

Sorry, my bad. Looks like r8186 did not get installed

Checking keyring...                                                        [1/1]
Checking integrity...                                                      [1/1]
Loading packages files...                                                  [1/1]
Checking file conflicts...                                                 [1/1]
Checking available disk space...                                           [1/1]
==> Unable to remove module r8168/8.048.03 for kernel 5.10.18-1-MANJARO: Not found in dkms status output.
==> Unable to remove module r8168/8.048.03 for kernel 5.9.1-1-rt19-MANJARO: Not found in dkms status output.
==> Unable to remove module r8168/8.048.03 for kernel 5.11.1-1-MANJARO: Not found in dkms status output.
==> Unable to remove module r8168/8.048.03 for kernel 5.9.16-1-MANJARO: Not found in dkms status output.
Reinstalling r8168-dkms (8.048.03-1)...                                    [1/1]

Creating symlink /var/lib/dkms/r8168/8.048.03/source ->
                 /usr/src/r8168-8.048.03

DKMS: add completed.
==> The module r8168 conflicts with r8169. You can blacklist it with:
==> echo "blacklist r8169" > /etc/modprobe.d/r8169_blacklist.conf
Running post-transaction hooks...
Arming ConditionNeedsUpdate...                                             [1/2]
Install DKMS modules                                                       [2/2]
==> Unable to install module r8168/8.048.03 for kernel 5.10.18-1-MANJARO: Missing kernel headers.
==> Unable to install module r8168/8.048.03 for kernel 5.9.1-1-rt19-MANJARO: Missing kernel headers.
==> Unable to install module r8168/8.048.03 for kernel 5.11.1-1-MANJARO: Missing kernel headers.
==> Unable to install module r8168/8.048.03 for kernel 5.9.16-1-MANJARO: Missing kernel headers.
Transaction successfully finished.

RTL8168g is well supported by r8169, there should be no need to fiddle with drivers.
Still we don’t know what “doesn’t seem to be working” means in detail.
Network interface exists and is up? Link is detected?
Best attach a full dmesg log.