Ubuntu Version:
Ubuntu Server 24.04.2 LTS
Problem Description:
I am unable to get a wired ethernet connection on my server. The interface is not recognized by the standard install, but I followed the instructions posted in this thread.
I can see the hardware is now detected:
> lscpi -k
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 0c)
Subsystem: ASUSTeK Computer Inc. RTL8125 2.5GbE Controller
Kernel driver in use: r8125
Kernel modules: r8169, r8125
I’ve edited /etc/netplan/50-cloud-init.yaml as follows:
network:
version: 2
renderer: networkd
ethernets:
enp1s0:
dhcp4: true
I then use:
> sudo netplan apply
However, I don’t get an IP address after rebooting.
> ip a
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 noprefixroute
valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether <mac_address> brd ff:ff:ff:ff:ff:ff
inet6 fe80::4a21:bff:fe71:2c5e/64 scope link
valid_lft forever preferred_lft forever
I’m not able to ping my gateway at 192.168.1.1 and receive a “network is unreachable” error.
Relevant System Information:
ASUS NUC Essential 14 Barebones with Intel Core 3 (N355) CPU.
Screenshots or Error Messages:
The output from dmesg below:
> sudo dmesg | grep r8125
[ 2.305168] r8125: loading out-of-tree module taints kernel.
[ 2.317699] r8125 2.5Gigabit Ethernet driver 9.011.00-NAPI loaded
[ 2.320433] r8125 0000:01:00.0: enabling device (0000 -> 0003)
[ 2.336087] r8125: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625.
[ 2.339565] r8125 Copyright (C) 2022 Realtek NIC software team <nicfae@realtek.com>
[ 2.351432] r8125 0000:01:00.0 enp1s0: renamed from eth0
[ 6.891455] r8125: enp1s0: link up
[ 1226.808145] r8125 0000:01:00.0 enp1s0: NETDEV WATCHDOG: CPU: 3: transmit queue 0 timed out 10395 ms
[ 1226.842574] r8125: enp1s0: link down
[ 1229.191529] r8125: enp1s0: link up
[ 2686.008247] r8125 0000:01:00.0 enp1s0: NETDEV WATCHDOG: CPU: 3: transmit queue 0 timed out 7872 ms
[ 2686.041830] r8125: enp1s0: link down
[ 2688.378633] r8125: enp1s0: link up
[ 3759.160321] r8125 0000:01:00.0 enp1s0: NETDEV WATCHDOG: CPU: 3: transmit queue 0 timed out 7424 ms
[ 3759.195296] r8125: enp1s0: link down
[ 3761.595706] r8125: enp1s0: link up
What I’ve Tried:
Followed the instructions in the following thread. To summarize, I did a fresh install using the wlan card, and then performed the following:
sudo apt update
sudo apt full-upgrade
sudo apt install r8125-dkms
I set up the netplan file as described above and reboot.
I’ve also performed the following steps:
- Updated the BIOS to the latest version (0021) available at the ASUS website
- Confirmed the ethernet cable works with another system
- Confirmed other systems are assigned addresses via DHCP
- Blacklisted the r8169 driver suggested in the in the referenced thread
- Powered off and held the power button for 30 s to clear residual settings