Ubuntu Version:
Ubuntu 24.04.2 LTS
Desktop Environment (if applicable):
Gnome
Problem Description:
Both Ethernet and WiFi do not work on Ubuntu. Bluetooth works and I can get internet through Bluetooth tethering from my phone. Nothing I try works to fix my issue. WiFi and Ethernet don’t show up in settings. It does look like the device is detected.
lspci -k
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 0c)
Subsystem: Micro-Star International Co., Ltd. [MSI] RTL8125 2.5GbE Controller
Kernel modules: r8169, r8125
My Desktop is dual boot with windows on one SSD and Ubuntu on a second SSD. Ethernet and WiFi work on windows but not Ubuntu. I don’t believe my issue is because I am dual booting. I fixed an initial problem with my device not being detected on both operating systems. If I run into that issue, I am able to fix it by cold booting my system. I’ve also turned off windows fast boot option because I read that could cause a similar issue. I’m not aware of any other issue with dual booting.
I think it’s a driver issue, but when I try updating or re-installing the drivers I still get the same problem. It’s my first time using Ubuntu on my own system so I’m not sure what other solutions to try.
I’m not sure if I edited something incorrectly in a config file. I tried following some fixes on other forums to no avail.
Relevant System Information:
From wireless-info
https://dpaste.com/3G7ULYG8B
From hardinfo
report. I tried to include only the relevant information.
Computer
Summary
Computer
Processor AMD Ryzen 7 9700X 8-Core Processor
Memory 28272MB (3268MB used)
Machine Type Desktop
Operating System Ubuntu 24.04.2 LTS
Operating System
Version
Kernel Linux 6.11.0-21-generic (x86_64)
Version #21~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Feb 24 16:52:15 UTC 2
C Library GNU C Library / (Ubuntu GLIBC 2.39-0ubuntu8.4) 2.39
Distribution Ubuntu 24.04.2 LTS
Kernel Modules
Loaded Modules
rfcomm Bluetooth RFCOMM ver 1.11
snd_seq_dummy ALSA sequencer MIDI-through client
snd_hrtimer ALSA hrtimer backend
qrtr Qualcomm IPC-router driver
cmac CMAC keyed hash algorithm
algif_hash Userspace interface for hash algorithms
algif_skcipher Userspace interface for skcipher algorithms
af_alg Crypto userspace interface
bnep Bluetooth BNEP ver 1.3
amd_atl AMD Address Translation Library
intel_rapl_msr Driver for Intel RAPL (Running Average Power Limit) control via MSR interface
intel_rapl_common Intel Runtime Average Power Limit (RAPL) common code
snd_hda_codec_realtek Realtek HD-audio codec
binfmt_misc Kernel support for miscellaneous binaries
snd_hda_codec_generic Generic HD-audio codec parser
snd_hda_scodec_component HD Audio component binding library
nls_iso8859_1 NLS ISO 8859-1 (Latin 1; Western European Languages)
edac_mce_amd AMD MCE decoder
snd_hda_codec_hdmi HDMI HD-audio codec
snd_hda_intel Intel HDA driver
kvm_amd KVM support for SVM (AMD-V) extensions
snd_intel_dspcfg Intel DSP config driver
amdgpu AMD GPU
snd_intel_sdw_acpi Intel Soundwire ACPI helpers
kvm Kernel-based Virtual Machine (KVM) Hypervisor
snd_hda_codec HDA codec core
nouveau nVidia Riva/TNT/GeForce/Quadro/Tesla/Tegra K1+
snd_hda_core HD-audio bus
crct10dif_pclmul T10 DIF CRC calculation accelerated with PCLMULQDQ.
mxm_wmi MXM WMI Driver
snd_hwdep Hardware dependent layer
polyval_clmulni POLYVAL hash function accelerated by PCLMULQDQ-NI
drm_gpuvm DRM GPUVM
amdxcp AMD XCP PLATFORM DEVICES
snd_pcm Midlevel PCM code for ALSA.
polyval_generic POLYVAL hash function
drm_exec DRM execution context
drm_buddy DRM Buddy Allocator
snd_seq_midi Advanced Linux Sound Architecture sequencer MIDI synth.
ghash_clmulni_intel GHASH hash function, accelerated by PCLMULQDQ-NI
gpu_sched DRM GPU scheduler
drm_suballoc_helper Range suballocator helper
snd_seq_midi_event MIDI byte <-> sequencer event coder
btusb Generic Bluetooth USB driver ver 0.8
sha256_ssse3 SHA256 Secure Hash Algorithm, Supplemental SSE3 accelerated
drm_ttm_helper DRM gem ttm helpers
snd_rawmidi Midlevel RawMidi code for ALSA.
btrtl Bluetooth support for Realtek devices ver 0.1
sha1_ssse3 SHA1 Secure Hash Algorithm, Supplemental SSE3 accelerated
ttm TTM memory manager subsystem (for DRM device)
snd_seq Advanced Linux Sound Architecture sequencer.
btintel Bluetooth support for Intel devices ver 0.1
aesni_intel Rijndael (AES) Cipher Algorithm, Intel AES-NI instructions optimized
drm_display_helper DRM display adapter helper
btbcm Bluetooth support for Broadcom devices ver 0.1
snd_seq_device ALSA sequencer device management
crypto_simd Shared crypto SIMD helpers
spd5118 SPD 5118 driver
cec Device node registration for cec drivers
btmtk Bluetooth support for MediaTek devices ver 0.1
snd_timer ALSA timer interface
cryptd Software async crypto daemon
i2c_piix4 PIIX4 SMBus driver
rc_core Remote Controller core module
joydev Joystick device interfaces
rapl Support Intel/AMD RAPL energy consumption counters
bluetooth Bluetooth Core ver 2.22
snd Advanced Linux Sound Architecture driver for soundcards.
input_leds Input -> LEDs Bridge
wmi_bmof WMI embedded Binary MOF driver
i2c_smbus SMBus protocol extensions support
k10temp AMD Family 10h+ CPU core temperature monitor
ccp AMD Secure Processor driver
i2c_algo_bit I2C-Bus bit-banging algorithm
soundcore Core sound module
gpio_amdpt AMD Promontory GPIO Driver
mac_hid Mouse button 2+3 emulation
sch_fq_codel Fair Queue CoDel discipline
msr x86 generic MSR driver
parport_pc PC-style parallel port driver
ppdev Support for user-space parallel port device drivers
lp Generic parallel printer driver
parport Parallel-port resource manager
efi_pstore EFI variable backend for pstore
nfnetlink Netfilter messages via netlink socket
dmi_sysfs DMI sysfs support
ip_tables IPv4 packet filter
x_tables {ip,ip6,arp,eb}_tables backend module
autofs4 Kernel automounter support
hid_generic HID generic driver
usbhid USB HID core driver
hid HID support for Linux
nvme NVMe host PCIe transport driver
ahci AHCI SATA low-level driver
xhci_pci xHCI PCI Host Controller Driver
nvme_core NVMe host core framework
video ACPI Video Driver
crc32_pclmul CRC32 algorithm (IEEE 802.3) accelerated with PCLMULQDQ
libahci Common AHCI SATA low-level routines
xhci_pci_renesas Support for Renesas xHCI controller with firmware
nvme_auth NVMe Authentication framework
wmi ACPI-WMI Mapping Driver
Devices
PCI Devices
Host bridge Advanced Micro Devices, Inc. [AMD] Device 14d8
IOMMU Advanced Micro Devices, Inc. [AMD] Device 14d9
Host bridge Advanced Micro Devices, Inc. [AMD] Device 14da
PCI bridge Advanced Micro Devices, Inc. [AMD] Device 14db (prog-if 00 [Normal decode])
PCI bridge Advanced Micro Devices, Inc. [AMD] Device 14db (prog-if 00 [Normal decode])
Host bridge Advanced Micro Devices, Inc. [AMD] Device 14da
PCI bridge Advanced Micro Devices, Inc. [AMD] Device 14db (prog-if 00 [Normal decode])
PCI bridge Advanced Micro Devices, Inc. [AMD] Device 14db (prog-if 00 [Normal decode])
Host bridge Advanced Micro Devices, Inc. [AMD] Device 14da
Host bridge Advanced Micro Devices, Inc. [AMD] Device 14da
Host bridge Advanced Micro Devices, Inc. [AMD] Device 14da
PCI bridge Advanced Micro Devices, Inc. [AMD] Device 14dd (prog-if 00 [Normal decode])
PCI bridge Advanced Micro Devices, Inc. [AMD] Device 14dd (prog-if 00 [Normal decode])
SMBus Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 71)
ISA bridge Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
Host bridge Advanced Micro Devices, Inc. [AMD] Device 14e0
Host bridge Advanced Micro Devices, Inc. [AMD] Device 14e1
Host bridge Advanced Micro Devices, Inc. [AMD] Device 14e2
Host bridge Advanced Micro Devices, Inc. [AMD] Device 14e3
Host bridge Advanced Micro Devices, Inc. [AMD] Device 14e4
Host bridge Advanced Micro Devices, Inc. [AMD] Device 14e5
Host bridge Advanced Micro Devices, Inc. [AMD] Device 14e6
Host bridge Advanced Micro Devices, Inc. [AMD] Device 14e7
VGA compatible controller NVIDIA Corporation Device 2c05 (rev a1) (prog-if 00 [VGA controller])
Audio device NVIDIA Corporation Device 22e9 (rev a1)
Non-Volatile memory controller Phison Electronics Corporation PS5027-E27T PCIe4 NVMe Controller (DRAM-less) (rev 01) (prog-if 02 [NVM Express])
USB controller Advanced Micro Devices, Inc. [AMD] Device 43ef (prog-if 30 [XHCI])
SATA controller Advanced Micro Devices, Inc. [AMD] 500 Series Chipset SATA Controller (prog-if 01 [AHCI 1.0])
PCI bridge Advanced Micro Devices, Inc. [AMD] 500 Series Chipset Switch Upstream Port (prog-if 00 [Normal decode])
PCI bridge Advanced Micro Devices, Inc. [AMD] Device 43ea (prog-if 00 [Normal decode])
PCI bridge Advanced Micro Devices, Inc. [AMD] Device 43ea (prog-if 00 [Normal decode])
Ethernet controller Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 0c)
Non-Volatile memory controller Phison Electronics Corporation PS5021-E21 PCIe4 NVMe Controller (DRAM-less) (rev 01) (prog-if 02 [NVM Express])
VGA compatible controller Advanced Micro Devices, Inc. [AMD/ATI] Device 13c0 (rev c5) (prog-if 00 [VGA controller])
Audio device Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller
Encryption controller Advanced Micro Devices, Inc. [AMD] Family 19h PSP/CCP
USB controller Advanced Micro Devices, Inc. [AMD] Device 15b6 (prog-if 30 [XHCI])
USB controller Advanced Micro Devices, Inc. [AMD] Device 15b7 (prog-if 30 [XHCI])
Audio device Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
USB controller Advanced Micro Devices, Inc. [AMD] Device 15b8 (prog-if 30 [XHCI])
USB Devices
Linux Foundation 2.0 root hub
Micro Star International MYSTIC LIGHT
Foxconn / Hon Hai
Corsair Lighting Node Pro
Linux Foundation 3.0 root hub
Linux Foundation 2.0 root hub
Linux Foundation 3.0 root hub
Linux Foundation 2.0 root hub
Linux Foundation 3.0 root hub
Linux Foundation 2.0 root hub
Genesys Logic, Inc. Hub
Bridgesil USB2.1 Hub
Razer USA, Ltd Razer BlackWidow V3 Mini
Logitech, Inc. G Pro Gaming Mouse
Linux Foundation 3.0 root hub
DMI
Product
Name MS-7E57
Family To be filled by O.E.M.
Vendor Micro-Star International Co., Ltd.
Version 1.0
BIOS
Date 11/20/2024
Vendor American Megatrends International, LLC. (American Megatrends, www.ami.com)
Version 1.A10
Board
Name PRO B840-P WIFI (MS-7E57)
Vendor Micro-Star International Co., Ltd.
Version 1.0
Asset Tag To be filled by O.E.M.
Chassis
Vendor Micro-Star International Co., Ltd.
Type [3] Desktop
Version 1.0
Asset Tag To be filled by O.E.M.
Network
Interfaces
Network Interfaces
lo 0.17MiB 0.17MiB 127.0.0.1
enxc8a3e84e4be0 22.26MiB 3.99MiB 172.20.10.9
IP Connections
Connections
Routing Table
IP routing table
ARP Table
ARP Table
172.20.10.1 46:da:30:f9:d2:64 enxc8a3e84e4be0
DNS Servers
Name Servers
127.0.0.53 _localdnsstub
Statistics
Shared Directories
SAMBA
Screenshots or Error Messages:
When I try to see if my device is working, it doesn’t show up with these commands
jonathan-martinez@jonathan-martinez-MS-7E57:~$ ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enxc8a3e84e4be0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 1000
link/ether c8:a3:e8:4e:4b:e0 brd ff:ff:ff:ff:ff:ff
jonathan-martinez@jonathan-martinez-MS-7E57:~$ nmcli connection show
NAME UUID TYPE DEVICE
Jonathan’s iphone Network e9be115e-0020-413f-878d-d114bc4c69d5 bluetooth 44:DA:30:A1:FD:8A
lo 517220b1-f300-4577-89fc-a140f256b335 loopback lo
Wired connection 1 902407e0-0aee-3ad3-a72f-bc35d701093f ethernet --
What I’ve Tried:
I’ve mainly followed these two post No Network Connection with 24.04 and r8125 Ethernet and RTL8125 2.5GbE Ethernet port not working in Ubuntu 24.04 to no avail.
This did not work for me
You can try sudo apt install git
git clone https://github.com/notpeelz/r8125.git
cd r8125/src
make
Ignore some errors, then
zstd r8125.ko
sudo cp r8125.ko.zst /lib/modules/$(uname -r)/kernel/drivers/net/ethernet/realtek/
echo "blacklist r8169" | sudo tee /etc/modprobe.d/r8169.conf
sudo depmod -a
Reboot
On the other subject, I think I have the script fixed by using pastebinit once again
This also did not work for me
sudo apt install r8125-dkms
As suggested here Network Connection Troubleshooting I’ve updated my system again to no avail and I’ve shared the relevant system information
sudo apt update
sudo apt full-upgrade
I’ve also tried downloading the driver from Realtek’s website and wasn’t able to get it working either.
I might have tried a few other steps from post on other forums, but I don’t remember exactly what I did.