RTL8125 2.5GbE Ethernet port not working in Ubuntu 24.04

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

1 Like