共计 540 个字符,预计需要花费 2 分钟才能阅读完成。
1、查看自己网卡的型号
下面以 Realtek 的网卡驱动为例进行说明
[user@elrepo]$ /sbin/lspci | grep -i Ethernet
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)
Searching for the vendor:device ID pairing of 10ec:8168 shows that kmod-r8168 should work with this Ethernet controller.
2、查看硬件对应驱动
可用上例中过滤出的字符 10ec:8168 去查找
http://elrepo.org/tiki/DeviceIDs
3、安装驱动
通过 rpm 包的方式,适用于 redhat 系列,而且是官方标准的内核版本
http://elrepo.org/linux/elrepo/el5/i386/RPMS/
第二种方式,下载对应的源码进行编译安装驱动
