Welcome 微信登录

首页 / 操作系统 / Linux / Linux下查看网卡驱动和版本信息

Linux下查看网卡驱动和版本信息

查看网卡生产厂商和信号

查看基本信息:lspci查看详细信息:lspci -vvv # 3个小写的v查看网卡信息:lspci | grep Ethernet

查看网卡驱动

查看网卡驱动信息:lspci -vvv # 找到网卡设备的详细信息,包括网卡驱动# lsmod    列出加载的所有驱动,包括网卡驱动 

查看网卡驱动版本

     查看模块信息:modifo<module name> # 其中包含version信息     或 # ethtool-i <device name>RHEL 6.3中的网卡驱动版本:# modinfo igbfilename:   /lib/modules/2.6.32-279.el6.x86_64/kernel/drivers/net/igb/igb.koversion:       3.2.10-klicense:        GPLdescription:    Intel(R) Gigabit Ethernet Network Driver# modinfo e1000efilename:      /lib/modules/2.6.32-279.el6.x86_64/kernel/drivers/net/e1000e/e1000e.koversion:       1.9.5-klicense:        GPLdescription:    Intel(R) PRO/1000 Network Driverauthor:       Intel Corporation,<linux.nics@intel.com># modinfo e1000filename:     /lib/modules/2.6.32-279.el6.x86_64/kernel/drivers/net/e1000/e1000.koversion:       8.0.35-NAPIlicense:        GPLdescription:    Intel(R) PRO/1000 Network Driver# modinfo ixgbefilename:  /lib/modules/2.6.32-279.el6.x86_64/kernel/drivers/net/ixgbe/ixgbe.koversion:       3.6.7-klicense:        GPLdescription:    Intel(R) 10 Gigabit PCI Express NetworkDriver# modinfo r8169filename:      /lib/modules/2.6.32-279.el6.x86_64/kernel/drivers/net/r8169.koversion:       2.3LK-NAPIlicense:        GPLdescription:    RealTek RTL-8169 Gigabit Ethernet driver

查看网络接口队列数

     查看网卡接口的中断信息:#cat /proc/interrupts | grep eth0     或 # ethtool-S eth0

查看网卡驱动源码的版本号

     解压Intel网卡驱动源码,打开解压缩目录下的*.spec文件查看驱动的版本。     例如:解压e1000-8.0.35.tar.gz网卡驱动后,查看e1000.spec文件。Name:e1000Summary:Intel(R) Gigabit Ethernet ConnectionVersion: 8.0.35Release:1Source:%{name}-%{version}.tar.gzVendor:Intel CorporationLicense:GPLExclusiveOS:linuxGroup:System Environment/Kernel 在驱动源码src目录中查找:#grep DRV_VERSION *              # forLinux#findstr DRV_VERSION * # for Windows在e1000_main.c中也能找到定义驱动版本的一行:#define DRV_VERSION"8.0.35" DRV_NAPI DRV_DEBUG DRV_HW_PERF在e1000e中src目录下netdev.c文件:#define DRV_VERSION"3.0.4.1" DRV_EXTRAVERSIONigb_main.c:#define MAJ 5#define MIN 2#define BUILD 9.4#define DRV_VERSION__stringify(MAJ) "." __stringify(MIN) "."ixgbe_main.c:#define DRV_VERSION        __stringify(3.22.3) DRIVERIOVDRV_HW_PERF FP GA 本文永久更新链接地址