Long Live Open Source Software !!

Did you have trouble when connecting your Linux to your network?  Did the network speed drop? Before you throw your computer, please check its log with dmesg. If dmesg shows repeated messages like eth0: link up and/or eth0: link down, then it must be your lan card driver problem. If you use Realtek LAN Card R8168, then it is the problem. Your Linux will load r8169 driver that have some bugs, instead of r8168. So, the solution of this problem is installing r8168 driver to your Linux, and disable r8169 module.

This is some steps that you need to do :

  1. Download r8168 driver from this site (Choose for kernel 2.6 version, although you use kernel 3.0)
  2. Extract it
  3. Open your favourite terminal
  4. Go to extracted directory
  5. Execute autorun.sh to compile the driver (don’t forget to change executable permission)
  6. If you use kernel 3.x, there is additional step that need to be executed
  7. Copy file r8168.ko from source directory to kernel module location (/lib/modules/<kernel-version>/kernel/drivers/net/)
  8. Run this command :
  • sudo depmod
  • sudo modprobe r8168

You can blacklist r8169 modules by add it blacklist.conf file :

echo "blacklist r8169" >> /etc/modprobe.d/blacklist.conf

Be Sociable, Share!

Maybe you like this post too :