天天看點

linux加載網卡ko驅動,linux下安裝網卡驅動

1)網卡驅動不适配可能導緻linux伺服器網絡時斷時續

2)去官網下載下傳驅動,檢測到本機網卡類型為Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet,檢測方法參考http://my.oschina.net/u/555061/blog/487239

3)到官網下載下傳驅動,一般下載下傳下來就是10k左右

4)檢視Read Me檔案

Unpack the tarball :

# tar vjxf r8168-8.aaa.bb.tar.bz2

Change to the directory:

# cd r8168-8.aaa.bb

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

# ./autorun.sh(as root or with sudo)

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.

# ifconfig ethX up

,where X=0,1,2,...

也就是第一步解壓,第二步進入目錄,第三步執行autorun.sh,不同驅動情況不同,但都有ReadMe檔案

5)安裝完畢,重新開機網卡

[[email protected] ~]# ifconfig eth0 down

[[email protected] ~]# ifconfig eth0 up

注明:這裡的eth0是檢視網卡配置來的,檢視方法參考http://my.oschina.net/u/555061/blog/526020中的DEVICE="eth0",或者使用/sbin/ifconfig檢視網卡配置同樣能查到eth0

原文:http://my.oschina.net/u/555061/blog/526044