Linux系统中如何确定网卡驱动

2017/12/0710:10:15 发表评论

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/

第二种方式,下载对应的源码进行编译安装驱动

  • 微信扫码赞助
  • weinxin
  • 支付宝赞助
  • weinxin

发表评论

您必须才能发表评论!