天天看點

LINUX網卡驅動安裝

1、查找網卡資訊

user@elrepo]$ /sbin/lspci | grep -i net

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

[user@elrepo]$ /sbin/lspci -n | grep '04:00.0'

04:00.0 0200: 10ec:8168 (rev 01)

可以使用下面的腳本中直接擷取網卡的資訊(供應商及裝置編号):

for BUSID in $(/sbin/lspci | awk '{ IGNORECASE=1 } /net/ { print $1 }'); do /sbin/lspci -s $BUSID -m; /sbin/lspci -s $BUSID -n; done

2、根據裝置編号查詢對應驅動程式如上例為10ec:8168

繼續閱讀