admin管理员组

文章数量:1531727

网卡驱动的安装

准备工作

  • 查找网卡的型号

  查看网卡的型号有两种途径,一个是直接查看物理网卡硬件上面的厂商标识,此种方式一般需要对桌面机或者服务器进行拆机操作才能查看;另一个是从计算机厂商网站上查看对应型号的硬件列表,以此来确定物理网卡的确切型号.
  还有一种方式,使用 lspci(列出连接到 PCI 总线上的所有设备) 指令进行筛选.

[root@centos7 ~]#
[root@centos7 ~]# lspci | grep -i ethernet
02:00.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)
[root@centos7 ~]#
  • 查找系统文件(/lib)中是否包含支持的驱动文件

  /lib/modules/release/kernel/drivers目录中查找所支持的所有驱动程序,其中的release是 unix 的版本型号,使用uname -a进行核对.该目录下的/net目录存储的是支持的所有网络设备列表;其内的/ethernet目录存储的是支持的以太网卡设备.
  总言之,/drivers目录里的驱动文件,罗列了通用的支持列表,若是自己的设备没有对应的文件,就需要去手动下载驱动文件了.

[root@centos7 ~]#
[root@centos7 ~]# uname -a
Linux centos7 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@centos7 ~]# ls /lib/modules/3.10.0-862.14.4.el7.x86_64/kernel/drivers/
acpi        bcma       char     dca       firmware  hv     infiniband  leds      message  mtd     nvme     pinctrl   pps  scsi     thermal  uwb    virtio
ata         block      cpufreq  dma       gpio      hwmon  input       md        mfd      net     parport  platform  ptp  ssb      tty      vfio   watchdog
auxdisplay  bluetooth  crypto   edac      gpu       i2c    iommu       media     misc     ntb     pci      power 

本文标签: 网卡驱动文件