29

So I did a fresh install of Ubuntu 20.04 on a computer with the new RTL8125B Realtek network card and I cannot get the network to work.

I was very suprised since this is supposed to be the new feature of the 5.4 kernel (I have 5.4.0-26-generic installed).

Does anyone have any idea on how to get it working? Thank you.

$ 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. RTL8125 2.5GbE Controller [1043:87d7]
Kernel modules: r8169
07:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev e7)

$ dmesg | grep -i r8169
[    0.911236] r8169 0000:06:00.0: unknown chip XID 641
Antonín Hoskovec
  • 393
  • 1
  • 3
  • 7

5 Answers5

31

I had the same exact issue. Looks like you're missing drivers for the Ethernet.

Go to this link (which is from the actual Ethernet provider): https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software

Download the "2.5G Ethernet LINUX driver r8125 for kernel up to 5.6" and follow the installation instructions.

You should be able to use wired connection once you're done.

Zanna
  • 69,223
  • 56
  • 216
  • 327
MrGoldWatch
  • 386
  • 2
  • 2
  • 1
    I tried that (see the second comment under the main question), but until I had internet connection working on the computer, I couldn't install the necessary packages for the instalation/compilation... since the fresh install of Ubuntu does not come with even the build-essentials... – Antonín Hoskovec Aug 12 '20 at 12:26
  • 1
    The above solution fixed my broken Ethernet LAN. Instructions are in the README file of the download from the link provided above by MrGoldWatch. I have a fresh install of ubuntu 20.04.1 on a new PC build with Gigabyte B550 Aorus Master with Realtek 8125B 2.5G Ethernet. Instructions are short and worked immediately, but I had to first install make using `sudo apt-get install build-essential` using a wifi connection. – Yosi Shibberu Aug 17 '20 at 03:15
  • This worked for me on a Proxmox 6.2-1 distribution running on an ASRock Z490M-ITX/ac motherboard. Check the README file in the driver and run the autorun.sh script, then add the interface in /etc/network/interfaces. For me the new interface name was `enp3s0`. `Linux proxmox 5.4.65-1-pve #1 SMP PVE 5.4.65-1 (Mon, 21 Sep 2020 15:40:22 +0200) x86_64 GNU/Linux` – Dominic Clifton Oct 22 '20 at 16:01
  • Worked for me on an MSI Z490 motherboard. If you do not see the ethX as described in the README, try the good old reboot method. :) – Py_Dream Dec 20 '20 at 12:42
  • same here on ubuntu 20.04. but ubuntu got upset At main.c:160: - SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76 sign-file: certs/signing_key.pem: No such file or directory – aquagremlin Feb 01 '21 at 21:56
  • Worked for me; this was all I needed... updated drivers. – Kalnode Mar 07 '21 at 23:47
  • FYI, you may have to re-install the driver at some point in the future (e.g. after a kernal upgrade). – Kalnode Mar 17 '21 at 17:31
  • The answers from Pilot6, MrGoldWatch and user2904033 have all worked for me on multiple builds of Ubuntu. Updated the 5.8 kernel to 5.10 on Ubuntu Server v20 worked and upgrading the realtek drivers on Ubuntu Desktop v20 (5.8 kernel) worked as well. I can't thank you guys enough. :) – G_Style Mar 20 '21 at 05:18
  • 1
    This worked like a charm. Make sure you install `sudo apt-get install build-essential` before running the `.sh` file therein with `sudo` privileges. – Rafs Jun 28 '21 at 22:39
  • just an update, this didn't work on Proxmox 6.4 with Kernel 5.4.174 with the 9.004 or 9.008 drivers. using the kernel 5.11 without any additional driver installation worked. After rebooting and using grub to select the 5.4.65 kernel I was then able to switch to the 5.11 kernel using the commands here: https://forum.proxmox.com/threads/kernel-5-11.86225/ Now my proxmox box is running `Linux 5.11.22-5-pve` just fine. – Dominic Clifton Apr 28 '22 at 04:13
22

The rtl8125b support has been added to the linux-next tree 6 days ago.

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/drivers/net/ethernet/realtek?h=next-20200720&id=0439297be95111cf9ef5ece2091af16d140ce2ef

It will take some time to get into stable and then into Ubuntu.

You can try to install drivers from the Realtek site before Linux supports it natively. You'll need to disable Secure Boot in BIOS and blacklist r8169 to get them working.

The issue is fixed in the 5.9 kernel. Unfortunately Ubuntu 20.10 and 20.04.2 won't have this kernel. So a mainline kernel, or a backport is needed.

Pilot6
  • 88,764
  • 91
  • 205
  • 313
9

There are no installation instructions on the realtek download page.

Anyways this solution worked for me:

Here's a solution I found;

    Go to the Realtek website 387

    Download the Unix(Linux) r8125 driver. You will need to give an email address.
    1754×445

    Go to /Downloads directory. Extract the Tarball.

    In Terminal, go into r8125-xxxx folder and run the autorun.sh

    $ sudo ./autorun.sh

Everything should run automatically and you should get ethernet connection now.
user2904033
  • 121
  • 2
  • 7
  • I do not understand why they have not added support for network adapters for the Asus TUF 550 motherboard. This issue has happened to me a few times with this motherboard and Ubuntu 20.04 over various updates. – user2904033 Feb 27 '21 at 19:17
  • Worked for me under Debian 10 (MB is MSI MAG B460M MORTAR WIFI). No additional packages were required it seems. – grinderX19 Mar 08 '21 at 15:43
  • Thank you very much @user2904033. It worked for me. – Delosari Mar 20 '21 at 21:39
  • 2
    Might be worth noting that you need some dependencies to install at, at least make. In doubt I installed `build-essential`. – Didier L Mar 30 '21 at 22:09
  • Thank you so much! I've tried alot of solutions and this one worked for me! Worked on Ubuntu 20.04 – John Apr 02 '21 at 04:47
2

The problem happens with me on kernel 5.4 now with kernel 5.10 there is no problem.

M.Hefny
  • 189
  • 1
  • 2
1

Good news from year 2022

This fix made it into 20.04.3, so the network card works now out of the box :)

tkazik
  • 225
  • 2
  • 4
  • For Ubuntu Server installs you'll need to opt into the Hardware Enablement stack to get the updated kernel: https://ubuntu.com/kernel/lifecycle – Hal Mar 10 '22 at 17:29