Using the Network Interface Card on my motherboard the RTL8111/8168B.
I found I had network issues dropping packets often 100% and being disconnected all the time I found that this problem has been ongoing for awhile and the kernels from 2.6 to even 3.2 load the wrong module for some reason it loads the 8169 driver module.
I have written a script to fix it for me and for you after each upgrade. Please spread the good word
How to tell if you are effected by this bug:
If the command
Code:lspci|grep r8168
returns the result -
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
ANDIf the command
ALSO returns only the the 8169 and not the r8168 kernel module.Code:lsmod|egrep "r8168|r8169"
Below is the stable version 0.1.1 [Release Date April 1st 2012] and it is tested for upgrades and new installs on ubuntu 11.10 and 12.04 BETA.
Instructions.
Copy the script to a new text file
Save the file as 81681fixer.sh
go in a terminal to where you saved the file
run the file with this command:
Code:chmod+x 81681fixer.sh; sudo sh ./81681fixer.shCode:#!/bin/bash is8168=$(lspci|grep 8168|wc -l); isusing8169=$(lsmod|grep 8169|wc -l); isroot=$(whoami|grep root|wc -l); isblacklisted=$(grep r1868 /etc/modprobe.d/blacklist.conf|wc -l); if [ $isroot -ne 1 ]; then echo "You are not root please run 'sudo su -' or su before running this script";echo "script must be run as root"; exit 1; fi echo "Checking that you are root user"; if [ $is8168 -lt 1 ]; then echo "Your NIC is not RealTek 8168 this fix does not apply to you"; exit 1; fi echo "Checking that your Nic is an 8168"; ##################################### ##All error checks are good lets run the script ##################################### sudo apt-get install --reinstall linux-headers-$(uname -r) build-essential dkms && cd /usr/src/ && sudo rm -fr r8168-8.028.00.tar.bz2; sudo wget http://r8168.googlecode.com/files/r8168-8.028.00.tar.bz2; sudo tar -xjf r8168-8.028.00.tar.bz2; cd r8168-8.028.00/; sudo make clean modules && sudo make install; if [ $isblacklisted -lt 1 ]; then echo blacklist r8169 >> /etc/modprobe.d/blacklist.conf; fi sudo rmmod r8169; sudo depmod; sudo modprobe r8168; sudo update-initramfs -u; echo "fix installed successfully hopefully! :)";



Adv Reply



Bookmarks