No ethernet connection available in Ubuntu 20.04

21,364

Solution 1

i had the same exact issue. i was missing drivers for the Ethernet.

Go to Realtek site from the actual Ethernet provider. Download the "2.5G Ethernet LINUX driver r8125 for kernel up to 5.6" and follow the install instruction.

You should be able to use wired connection once your done.

Solution 2

This driver exists on the ubuntu repositories, the package is called: r8168-dkms. Yes, this works for the realtek 8125 wired ethernet connection.

Share:
21,364
Liam Doughty
Author by

Liam Doughty

Updated on September 18, 2022

Comments

  • Liam Doughty
    Liam Doughty over 1 year

    I just installed Ubuntu 20.04 on a clean SSD alongside windows to do C development and when I first booted, there was no internet connection yet my ethernet worked perfectly in windows.

    My network controller is the realtek RTL8125 2.5 gb and is labelled "UNCLAIMED" when I run the lshw -C network command. I can access the internet using a USB tether to my phone but nothing I have tried so far has fixed the problem.

    Would appreciate any help

    • Pilot6
      Pilot6 almost 4 years
      Please edit your question and add output of lspci -knn | grep Eth -A3 terminal command.
    • Serafim
      Serafim almost 4 years
      You need to install r8168-dkms: apt install r8168-dkms
    • Pilot6
      Pilot6 almost 4 years
      @Serafim Why do you think r8168-dkms is needed?
    • Serafim
      Serafim almost 4 years
      @Pilot6 It is listed on reposcope.com/package/r8168-dkms as the driver for RTL8125
    • Boris Hamanov
      Boris Hamanov almost 4 years
      Is this a desktop or server installation? Edit your question and show me sudo lshw -C network and cat /etc/network/interfaces and cat /etc/netplan/*.yaml. Start comments to me with @heynnema or I'll miss them.
    • Luiz Fernando da Silva
      Luiz Fernando da Silva over 2 years
      I had this same problem after update nvidia drivers for linux. Solved just going to windows and then back to linux (have two different HDs)
  • Tono Nam
    Tono Nam about 2 years
    Downloaded the exact same driver, uncompressed it, ran ./autorun.sh as sudo and now I have Ethernet on my linux distribution Pop!_OS. This answer worked great!