Realtek NIC driver r8169 dropping packets on linux ubuntu and fedora
Many motherboards nowadays have integrated gigabit ethernet that use the Realtek NIC chipset.
The Realtek r8168B network card does not work out of the box in Redhat, Centos, Fedora, or Ubuntu: instead of loading the r8168 driver, modprobe loads the r8169 driver, which is broken as can be seen with ifconfig which shows large amounts of dropped packets.
One solution found by Barry Mavin is to remove the r8169 driver and install the latest r8168 driver.
Steps to install Realtek r8168 driver
Download the R8168B linux driver:
wget http://www.foxhop.net/attachment/r8168-8.023.00.tar.bz2 tar vjxf r8168-8.023.00.tar.bz2
Check whether the built-in driver, r8169.ko (or r8169.o for kernel 2.4.x), is installed:
lsmod | grep r8169
r8169 seems installed if the lsmod command returns output, so remove r8169 with:
sudo rmmod r8169
install the Realtec r8168b nic driver:
cd r8168-8.023.00 sudo ./autorun.sh
prevent the r8169 driver from loading again:
echo "blacklist r8169" >> /etc/modprobe.d/blacklist.conf
you may now verify that r8168b has been installed and loaded by running:
lsmod | grep r8168
The dropped packets problem should appear fixed!
Some people notice r8169 driver returning after reboots. To prevent this you might need to clean the cache using the following command:update-initramfs -u
You should donate to foxhop.net here