Realtek Gigabit RTL8168 no Ubuntu

March 1, 2008

This is the Linux device driver released for RealTek RTL8168B/8111B
and RTL8168C/8111C, Gigabit Ethernet controllers with PCI-Express


– Kernel source tree (supported Linux kernel 2.6.x and 2.4.x)
– For linux kernel 2.4.x, this driver supports 2.4.20 and latter.
– Compiler/binutils for kernel compilation

<Quick install with proper kernel settings>

Unpack the tarball :
# tar vjxf

Change to the directory:
# cd

If you are running the target kernel, then you should be able to do :

# make clean modules (as root or with sudo)
# make install
# depmod -a
# insmod ./src/r8168.ko (or r8168.o in linux kernel 2.4.x)

You can check whether the driver is loaded by using following commands.

# lsmod | grep r8168
# ifconfig -a

If there is a device name, ethX, shown on the monitor, the linux
driver is loaded. Then, you can use the following command to activate the ethX.

Now we have to block the second module r8169 so we can use only the r8168 module correctly.

Inside of Gnome press ALT + F2 and type:

gksudo gedit /etc/modprobe.d/blacklist-network

Now create the following lines

# Prevent r8169.ko from loading and allow r1000.ko to load
blacklist r8169

Save the file and reboot …
Well done! After it, you may use the r8168 module correctly without any problems.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: