Ubuntu – Ethernet not working in Ubuntu 16.04 (works in Windows) with RTL8111/8168/8411


My wired connection does not work in Ubuntu. I don't have a WiFi card so I need to fix this. I have run some commands to provide some more information(editing this post with results in a few minutes).

I have tried reading through similar questions and answers and nothing I have tried works.


$ ifconfig -a
enp3s0    Link encap:Ethernet  HWaddr 94:de:80:78:2f:de  
          RX packets:10562 errors:0 dropped:2 overruns:0 frame:0
          TX packets:15 errors:0 dropped:730 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:644547 (644.5 KB)  TX bytes:2382 (2.3 KB)

lo        Link encap:Local Loopback  
          inet addr:  Mask:
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:8708 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8708 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:654867 (654.8 KB)  TX bytes:654867 (654.8 KB)

$ lspci -nn | grep Ethernet
    03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)

$ cat /etc/network/interfaces
    # interfaces(5) file used by ifup(8) and ifdown(8)
    auto lo
    iface lo inet loopback


Best Answer

Download these files and copy them to your Ubuntu Home folder.

http://mirrors.kernel.org/ubuntu/pool/universe/r/r8168/r8168-dkms_8.041.00-1_all.deb http://mirrors.kernel.org/ubuntu/pool/main/d/dkms/dkms_2.2.0.3-2ubuntu11_all.deb

Then run in a terminal

sudo dpkg -i dkms*.deb r8168*.deb

and reboot.

Related Question