Linux查看网卡芯片型号的命令参考

发布时间:2020-08-17编辑:脚本学堂
本文介绍下,查看linux系统中的网卡芯片型号等信息的命令,有需要的朋友参考下吧。

用命令lspci:
$ lspci | grep Ethernet

1、查看网卡型号
 

复制代码 代码示例:
kudzu --probe --class=network

结果如下:
 

class: NETWORK
bus: PCI
detached: 0
device: eth3
driver: bnx2
desc: "Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet"
network.hwaddr: d8:d3:85:b3:cd:0c
vendorId: 14e4
deviceId: 1639
subVendorId: 103c
subDeviceId: 7055
pciType: 1
pcidom:    0
pcibus:  4
pcidev:  0
pcifn:  1

2、查看驱动版本
 

modinfo bnx2

结果如下:
 

filename:       /lib/modules/2.6.18-194.el5PAE/kernel/drivers/net/bnx2.ko
version:        2.0.2
license:        GPL
description:    Broadcom NetXtreme II BCM5706/5708/5709/5716 Driver
author:         Michael Chan <mchan@broadcom.com>
srcversion:     7025AAF3645EE432EAF1C00
alias:          pci:v000014E4d0000163Csv*sd*bc*sc*i*
alias:          pci:v000014E4d0000163Bsv*sd*bc*sc*i*
alias:          pci:v000014E4d0000163Asv*sd*bc*sc*i*
alias:          pci:v000014E4d00001639sv*sd*bc*sc*i*
alias:          pci:v000014E4d000016ACsv*sd*bc*sc*i*
alias:          pci:v000014E4d000016AAsv*sd*bc*sc*i*
alias:          pci:v000014E4d000016AAsv0000103Csd00003102bc*sc*i*
alias:          pci:v000014E4d0000164Csv*sd*bc*sc*i*
alias:          pci:v000014E4d0000164Asv*sd*bc*sc*i*
alias:          pci:v000014E4d0000164Asv0000103Csd00003106bc*sc*i*
alias:          pci:v000014E4d0000164Asv0000103Csd00003101bc*sc*i*
depends:       
vermagic:       2.6.18-194.el5PAE SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.1
parm:           disable_msi:Disable Message Signaled Interrupt (MSI) (int)
parm:           enable_entropy:Allow bnx2 to populate the /dev/random entropy pool (int)
module_sig:     883f3504bb64ec7285b5c47ed7a1e8e1124ab709d1d789bf78777b43dfcfff9788e6b1c1da763fece09cfbd9bab31828ce6ca80ce374b2929a3abf6cd83