Had the same issue with my MSI B550 Gaming edge WiFi board and Ubuntu 20.04.
Running lshw
gave me:
sudo lshw -C network
*-network UNCLAIMED
description: Ethernet controller
product: RTL8125 2.5GbE Controller
vendor: Realtek Semiconductor Co., Ltd.
Steps to fix the issue:
Download the 2.5G Ethernet Linux Driver r8125 from here.
Unpack the tarball with:
tar vjxf r8125-9.aaa.bb.tar.bz2
Change to the directory:
cd r8125-9.aaa.bb
Gave execution permissions and run autorun.sh
:
chmod +x autorun.sh
sudo ./autorun.sh
In case, the previous command did not work, you can use:
sudo sh autorun.sh