2

I have recently upgraded from Ubuntu 15.10 to 16.04. when i was using 15.10 ethernet works flawlessly. But after upgrading to 16.04 it doesn't work anymore showing network cable unplugged. I tried reinstalling driver & end up getting following error

sumit@Lenovo-Z50-70:~/Desktop/r8168-8.041.01$ sudo ./autorun.sh
[sudo] password for sumit:

Check old driver and unload it.
rmmod r8169
Build the module and install
make[2]: *** No rule to make target 'kernel/drivers/net/ethernet/realtek'.  Stop.
make[1]: *** [install] Error 2
make: *** [install] Error 2

When i had installed in 15.10 it was installed successfully. My ethernet controller is: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev10). I have done all proxy settings same as they were in 15.10.

Please help. :(

2 Answers2

9

Get an internet connection(i got through wifi). Use the command:

sudo apt-get install r8168-dkms

Enter your password. This will install the latest version of the driver. Ethernet connection should be established after installing (you may reboot & check again).

4

For product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller the above solution didn't work. I had to download driver from here and install with ./autorun.sh.

After that I still couldn't connect to the internet. But the r8101 kernel module was loaded and in nm the connection came up. I noticed there was no mac address. With the following command I forced a random chosen mac address.

sudo ifconfig enp3s0 hw ether 00:04:FE:11:22:38

where enp3s0 was my ethernet nic. with this I got my internet connection but is wasn't persistent. I had to add

pre-up ifconfig enp3s0 hw ether 00:04:FE:11:22:38

at the end of /etc/network/interfaces file

sudo nano /etc/network/interfaces  
Filip
  • 141
  • 1
  • 4