Proxmox 1.8 install r8168 driver (r8168 chip with r8169 driver)

如果你覺得網卡怎麼常常掛點或是反應很慢,此時就要檢查看看是否你的網卡是 r8168 晶片,但是系統卻用 r8169 的驅動模組。

lspci |grep Eth

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)

cat /etc/udev/rules.d/70-persistent-net.rules

# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.

# PCI device 0x10ec:0x8168 (r8169)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="14:da:e9:33:fc:aa", ATTR{dev_id}=="0x0″, ATTR{type}=="1″, KERNEL=="eth*", NAME="eth0″

注意到了嗎?上面那兩個不一樣顏色的地方,就是問題所在。

#安裝 kernel source

aptitude install pve-headers-`uname -r`

#安裝編譯工具集

apt-get install build-essential

#由 reltek 網站下載最新的 r8168 驅動程式,解壓縮 r8168 驅動壓縮檔。

tar jxvf r8168-8.028.00.tar.bz2

#進到剛解出的目錄下,執行自動編譯安裝檔。

cd r8168-8.028.00

./autorun.sh

#防止系統重新載入 r8169 驅動模組 。

echo “blacklist r8169″ >> /etc/modprobe.d/blacklist.conf

update-initramfs -u

#移除 udev 網卡設定,並重新啟動系統。

rm /etc/udev/rules.d/70-persistent-net.rules

sync;sync;reboot

參考:Realtek NIC driver r8169 dropping packets on linux ubuntu and fedora

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

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

Facebook照片

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

Google+ photo

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

連結到 %s