I'm getting my wired (i.e. Ethernet) connection hanging on trying to connect. I've tried switching ports (on the router) and using a different cable, but still the same.
ifconfig shows for Ethernet:
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 50:eb:f6:ef:a4:e6 txqueuelen 1000 (Ethernet)
RX packets 2779 bytes 250524 (250.5 KB)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 355 bytes 72171 (72.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
sudo lshw -C enp2s0 shows nothing
lspci -nn shows for Ethernet:
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (rev 05)
I found a web page:
how-to-install-realtek-rtl8125-rtl8125b-driver-in-ubuntu-gnu-linux-distro/
I followed the instructions and installed realtek-r8125-dkms package OK. On rebooting, I followed the instructed procedure (shown when installing the package) of Enrolling a MOK, creating a password and then entering it when requested on the reboot. But worse in that the Wired option is not shown when trying to connect to internet via router. And my WiFi (using Router) is not working so I'm posting using my Android phone as a Hotspot. Will I have any hair left soon!
I've found another webpage Essentially installing first the r8168 driver anhttps://askubuntu.com/questions/1287967/cant-get-rtl8125-realtek-driver-working-on-version-20-04/1289417#128941d then the r8168-dkms package & r8125 driver
I've tried both answer 1 & answer 2. Still no improvement after either. Any ideas what to do?