No Ethernet with RTL8125

I have a Gigabyte Aorus Elite B550 mainboard and the Ethernet adapter isn’t working.

I tried several different drivers from Realtek themselves as well as from Github, more specifically r8168, r8169, r8125 and in the beginning also just the built in driver in kernel 5.9. None made the Ethernet port work.
Right now I’m relying on a super old usb ethernet adapter but it’s also pretty slow, so it’s not quite ideal.

$ lspci -v
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex
        Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex
        Flags: fast devsel

00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Starship/Matisse IOMMU
        Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse IOMMU
        Flags: bus master, fast devsel, latency 0, IRQ 25
        Capabilities: <access denied>

00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
        Flags: fast devsel, IOMMU group 0

00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 26, IOMMU group 1
        Bus: primary=00, secondary=01, subordinate=08, sec-latency=0
        I/O behind bridge: 0000f000-0000ffff [size=4K]
        Memory behind bridge: fce00000-fcffffff [size=2M]
        Prefetchable memory behind bridge: [disabled]
        Capabilities: <access denied>
        Kernel driver in use: pcieport

00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
        Flags: fast devsel, IOMMU group 2

00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
        Flags: fast devsel, IOMMU group 3

00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 27, IOMMU group 4
        Bus: primary=00, secondary=09, subordinate=0b, sec-latency=0
        I/O behind bridge: 0000e000-0000efff [size=4K]
        Memory behind bridge: fcc00000-fcdfffff [size=2M]
        Prefetchable memory behind bridge: 00000000d0000000-00000000e01fffff [size=258M]
        Capabilities: <access denied>
        Kernel driver in use: pcieport

00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
        Flags: fast devsel, IOMMU group 5

00:05.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
        Flags: fast devsel, IOMMU group 6

00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
        Flags: fast devsel, IOMMU group 7

00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 29, IOMMU group 8
        Bus: primary=00, secondary=0c, subordinate=0c, sec-latency=0
        I/O behind bridge: [disabled]
        Memory behind bridge: [disabled]
        Prefetchable memory behind bridge: [disabled]
        Capabilities: <access denied>
        Kernel driver in use: pcieport

00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
        Flags: fast devsel, IOMMU group 9

00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 30, IOMMU group 10
        Bus: primary=00, secondary=0d, subordinate=0d, sec-latency=0
        I/O behind bridge: [disabled]
        Memory behind bridge: fc900000-fcbfffff [size=3M]
        Prefetchable memory behind bridge: [disabled]
        Capabilities: <access denied>
        Kernel driver in use: pcieport

00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
        Subsystem: Gigabyte Technology Co., Ltd Device 5001
        Flags: 66MHz, medium devsel, IOMMU group 11
        Kernel modules: i2c_piix4, sp5100_tco

00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
        Subsystem: Gigabyte Technology Co., Ltd Device 5001
        Flags: bus master, 66MHz, medium devsel, latency 0, IOMMU group 11

00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 0
        Flags: fast devsel, IOMMU group 12

00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 1
        Flags: fast devsel, IOMMU group 12

00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 2
        Flags: fast devsel, IOMMU group 12

00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 3
        Flags: fast devsel, IOMMU group 12
        Kernel driver in use: k10temp
        Kernel modules: k10temp

00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 4
        Flags: fast devsel, IOMMU group 12

00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 5
        Flags: fast devsel, IOMMU group 12

00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 6
        Flags: fast devsel, IOMMU group 12

00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 7
        Flags: fast devsel, IOMMU group 12

01:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Device 43ee (prog-if 30 [XHCI])
        Subsystem: ASMedia Technology Inc. Device 1142
        Flags: bus master, fast devsel, latency 0, IRQ 33, IOMMU group 13
        Memory at fcfa0000 (64-bit, non-prefetchable) [size=32K]
        Capabilities: <access denied>
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci

01:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] Device 43eb (prog-if 01 [AHCI 1.0])
        Subsystem: ASMedia Technology Inc. Device 1062
        Flags: bus master, fast devsel, latency 0, IRQ 45, IOMMU group 13
        Memory at fcf80000 (32-bit, non-prefetchable) [size=128K]
        Expansion ROM at fcf00000 [disabled] [size=512K]
        Capabilities: <access denied>
        Kernel driver in use: ahci

01:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43e9 (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 32, IOMMU group 13
        Bus: primary=01, secondary=02, subordinate=08, sec-latency=0
        I/O behind bridge: 0000f000-0000ffff [size=4K]
        Memory behind bridge: fce00000-fcefffff [size=1M]
        Prefetchable memory behind bridge: [disabled]
        Capabilities: <access denied>
        Kernel driver in use: pcieport

02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43ea (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 34, IOMMU group 13
        Bus: primary=02, secondary=03, subordinate=03, sec-latency=0
        I/O behind bridge: [disabled]
        Memory behind bridge: [disabled]
        Prefetchable memory behind bridge: [disabled]
        Capabilities: <access denied>
        Kernel driver in use: pcieport

02:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43ea (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 35, IOMMU group 13
        Bus: primary=02, secondary=04, subordinate=04, sec-latency=0
        I/O behind bridge: [disabled]
        Memory behind bridge: [disabled]
        Prefetchable memory behind bridge: [disabled]
        Capabilities: <access denied>
        Kernel driver in use: pcieport

02:03.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43ea (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 37, IOMMU group 13
        Bus: primary=02, secondary=05, subordinate=05, sec-latency=0
        I/O behind bridge: [disabled]
        Memory behind bridge: [disabled]
        Prefetchable memory behind bridge: [disabled]
        Capabilities: <access denied>
        Kernel driver in use: pcieport

02:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43ea (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 38, IOMMU group 13
        Bus: primary=02, secondary=06, subordinate=06, sec-latency=0
        I/O behind bridge: [disabled]
        Memory behind bridge: [disabled]
        Prefetchable memory behind bridge: [disabled]
        Capabilities: <access denied>
        Kernel driver in use: pcieport

02:08.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43ea (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 39, IOMMU group 13
        Bus: primary=02, secondary=07, subordinate=07, sec-latency=0
        I/O behind bridge: 0000f000-0000ffff [size=4K]
        Memory behind bridge: fce00000-fcefffff [size=1M]
        Prefetchable memory behind bridge: [disabled]
        Capabilities: <access denied>
        Kernel driver in use: pcieport

02:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43ea (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 41, IOMMU group 13
        Bus: primary=02, secondary=08, subordinate=08, sec-latency=0
        I/O behind bridge: [disabled]
        Memory behind bridge: [disabled]
        Prefetchable memory behind bridge: [disabled]
        Capabilities: <access denied>
        Kernel driver in use: pcieport

07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
        DeviceName: RTL8111E Giga LAN
        Subsystem: Gigabyte Technology Co., Ltd Device e000
        Flags: bus master, fast devsel, latency 0, IRQ 33, IOMMU group 13
        I/O ports at f000 [size=256]
        Memory at fce00000 (64-bit, non-prefetchable) [size=64K]
        Memory at fce10000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: r8169
        Kernel modules: r8169, r8125

09:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Upstream Port of PCI Express Switch (rev c1) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 43, IOMMU group 14
        Memory at fcd00000 (32-bit, non-prefetchable) [size=16K]
        Bus: primary=09, secondary=0a, subordinate=0b, sec-latency=0
        I/O behind bridge: 0000e000-0000efff [size=4K]
        Memory behind bridge: fcc00000-fccfffff [size=1M]
        Prefetchable memory behind bridge: 00000000d0000000-00000000e01fffff [size=258M]
        Capabilities: <access denied>
        Kernel driver in use: pcieport

0a:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 44, IOMMU group 15
        Bus: primary=0a, secondary=0b, subordinate=0b, sec-latency=0
        I/O behind bridge: 0000e000-0000efff [size=4K]
        Memory behind bridge: fcc00000-fccfffff [size=1M]
        Prefetchable memory behind bridge: 00000000d0000000-00000000e01fffff [size=258M]
        Capabilities: <access denied>
        Kernel driver in use: pcieport

0b:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] (rev c1) (prog-if 00 [VGA controller])
        Subsystem: Tul Corporation / PowerColor Device 2398
        Flags: bus master, fast devsel, latency 0, IRQ 102, IOMMU group 16
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        Memory at e0000000 (64-bit, prefetchable) [size=2M]
        I/O ports at e000 [size=256]
        Memory at fcc00000 (32-bit, non-prefetchable) [size=512K]
        Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel driver in use: amdgpu
        Kernel modules: amdgpu

0b:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 HDMI Audio
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 HDMI Audio
        Flags: bus master, fast devsel, latency 0, IRQ 99, IOMMU group 17
        Memory at fcca0000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

0c:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function
        Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function
        Flags: bus master, fast devsel, latency 0, IOMMU group 18
        Capabilities: <access denied>

0d:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP
        Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP
        Flags: bus master, fast devsel, latency 0, IOMMU group 19
        Capabilities: <access denied>

0d:00.1 Encryption controller: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Cryptographic Coprocessor PSPCPP
        Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Cryptographic Coprocessor PSPCPP
        Flags: bus master, fast devsel, latency 0, IRQ 95, IOMMU group 20
        Memory at fca00000 (32-bit, non-prefetchable) [size=1M]
        Memory at fcb08000 (32-bit, non-prefetchable) [size=8K]
        Capabilities: <access denied>
        Kernel driver in use: ccp
        Kernel modules: ccp

0d:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller (prog-if 30 [XHCI])
        Subsystem: Gigabyte Technology Co., Ltd Device 5007
        Flags: bus master, fast devsel, latency 0, IRQ 54, IOMMU group 21
        Memory at fc900000 (64-bit, non-prefetchable) [size=1M]
        Capabilities: <access denied>
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci

0d:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller
        DeviceName: Realtek ALC1220
        Subsystem: Gigabyte Technology Co., Ltd Device a0cf
        Flags: bus master, fast devsel, latency 0, IRQ 101, IOMMU group 22
        Memory at fcb00000 (32-bit, non-prefetchable) [size=32K]
        Capabilities: <access denied>
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

Hello,

First, blacklist the r8169 because for now you have:

You can add to /etc/modprobe.d/blacklist.conf or create it, give a different name, with this line in:
blacklist r8169

Reboot after that.

In case is not working, then try to follow this advice:

In the meantime kernel 5.9 and kernel 5.10 support RTL8125 A and RTL8125B by the r8169 module!
No need for extra-module any longer…
And do not blacklist the module you need / kernel-module r8169.
Remove kernel-extra-module r8168
(Needs only: linux59 and linux59-headers / linux510 and linux510-headers / no blacklisted kernel-module)
The live - iso 20.2-rc1 should already work with your chip!?

Well, I tried not installing anything in the beginning, on kernel 5.9 as well as 5.10. Neither worked though.
I’m gonna try the live ISO, perhaps it’s because of some messed up settings or something.

already tried blacklisting r8169 after installing r8125, didn’t work.
I tried installing the driver from Realtek but it threw some errors (probably because it’s only for kernels up to 5.6. I need 5.9 though)

So, sadly the live iso with kernel 5.9 does not work either. lspci -v showed that it did load the r8169 module but there was no connection, same as on my install.

So, I tested a live Gnome iso with 5.9 - live - iso 20.2-rc1 -connection established and working;
Machine: ASUS TUF Gaming B550 Plus
LAN-Chip: REALTEK RTL8125B 2.5Gb Ethernet

lspci -knn | grep Eth -A3
06:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (rev 04)
Subsystem: ASUSTeK Computer Inc. Device [1043:87d7]
Kernel driver in use: r8169
Kernel modules: r8169

What is your LAN-Chip (look into the manual of your motherboard, please).
(RTL8125 2.5GbE Controller [10ec:8125] (rev 05)…

Link: (Realtek rtl8125) 2.5GBe ethernet not working on AMD B550 mobo - Support & Help Requests - Ubuntu MATE Community
or
[Solved] No network with RTL8125 2.5GbE Controller / Kernel & Hardware / Arch Linux Forums

Your LAN cable is o.K an LAN is enabled in the BIOS? Shure Kernel 5.9 (minimum)?

Do a weird trick:

sudo touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf
sudo service network-manager restart

The mainboard manual only says Realtek 2.5GbE LAN chip. Their website says something about “GIGABYTE Exclusive 8118 Gaming GbE LAN” though

Your LAN cable is o.K

yes, it’s working with the usb lan adapter I have

LAN is enabled in the BIOS?

I left everything on the defaults. I’ll check though, can’t hurt
Edit: there was something about network stack that was disabled but that was just about network booting and didn’t change anything

If your chip is a RTL 8118 then test linux59-r8168 and blacklist rtl8169.
(do not forget: sudo update-grub (its magic))

when I do that, it falls back to r8125 (that I installed from the realtek site) and doesn’t show r8168 at all:

07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
DeviceName: RTL8111E Giga LAN
Subsystem: Gigabyte Technology Co., Ltd Device e000
Flags: bus master, fast devsel, latency 0, IRQ 33, IOMMU group 13
I/O ports at f000 [size=256]
Memory at fce00000 (64-bit, non-prefetchable) [size=64K]
Memory at fce10000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: r8125
Kernel modules: r8169, r8125

Btw, I’m not too sure about the

GIGABYTE Exclusive 8118 Gaming GbE LAN

there appear to be multiple versions of this mainboard :confused:
The page with a description that exactly matches my mainboard doesn’t specify more than “2.5GbE Ethernet”, same as the manual

I give up…

Maybe the LAN port is simply broken :confused:

Thanks for trying anyways.

What you have is a RTL8125B that is supported from kernel version 5.9. Why don’t you go step by step when analyzing the issue? First check whether driver detects the network chip and generates the network device: go with r8169 and show what dmesg | grep r8169 says.
If the network device exists then it may be a network manager issue, therefore check w/o network manager. Assign IP and bring up the network manually.

It does generate a network device. This is the output from dmesg | grep r8169:

[    7.851906] libphy: r8169: probed
[    7.852051] r8169 0000:07:00.0 eth0: RTL8125B, b4:2e:99:ef:c6:82, XID 641, IRQ 66
[    7.852053] r8169 0000:07:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
[    7.861433] r8169 0000:07:00.0 eno1: renamed from eth0
[    8.388532] RTL8125B 2.5Gbps internal r8169-700:00: attached PHY driver [RTL8125B 2.5Gbps internal] (mii_bus:phy_addr=r8169-700:00, irq=IGNORE)
[    8.565379] r8169 0000:07:00.0 eno1: Link is Down

I’m not familiar with setting up networking without NM, how can I do that?

Hi, @Zamundaaa
Can you post the output of the following terminal command: ip add ?

Regards

$ ip add
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether b4:2e:99:ef:c6:82 brd ff:ff:ff:ff:ff:ff
    altname enp7s0
5: enp1s0f0u9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:60:6e:00:0a:61 brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.167/24 brd 192.168.2.255 scope global dynamic noprefixroute enp1s0f0u9
       valid_lft 863998sec preferred_lft 863998sec
    inet6 fe80::1567:e686:8681:81af/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

Hi @Zamundaaa

The ethernet port is up, but you have the eno1 ether port. down. Do you have two ether ports?

Could you post the output of the terminal command inxi -N?
Regards

eno1 is the one on the mainboard, enp1s0f0u9 is an adapter connected over USB

$ inxi -N
Network:   Device-1: Realtek RTL8125 2.5GbE driver: r8169 
           Device-2: Davicom DM9601 Fast Ethernet Adapter type: USB driver: dm9601

This looks good so far. Driver correctly detects device, and device is brought up. Just no link is established. Is the link partner 2.5Gbps-capable, or just 1Gbps?
For a stable link at 1Gbps (or a link at all) this chip version needs firmware. Check whether you have file /lib/firmware/rtl_nic/rtl8125b-2.fw, and whether dmesg | grep -i firmware reports a problem loading the firmware. Also the output of ethtool -i eno1 would help.
If you don’t have the firmware file you have to update package linux-firmware, or get the file from the linux-firmware git repo directly.

The firmware file is there and dmesg doesn’t show any errors.

$ ethtool -i eno1
driver: r8169
version: 5.9.6-2-MANJARO
firmware-version: rtl8125b-2_0.0.2 07/13/20
expansion-rom-version: 
bus-info: 0000:07:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no