linux查看网卡型号、驱动版本、队列数(精品)linux查看网卡型号、驱动版本、队列数(精品)
一、如何查看网卡生产厂家和型号,
lspci命令
查看基本信息 lspci, 详细信息lspci -vvv
00:00.0 Host bridge: Intel Corporation 5520 I/O Hub to ESI Port (rev 13)
00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 13)
00:02.0 PCI bri...
linux查看网卡型号、驱动版本、队列数(精品)
一、如何查看网卡生产厂家和型号,
lspci命令
查看基本信息 lspci, 详细信息lspci -vvv
00:00.0 Host bridge: Intel Corporation 5520 I/O Hub to ESI Port (rev 13)
00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 13)
00:02.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 2 (rev 13)
00:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 13)
00:04.0 PCI bridge: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 4 (rev 13)
00:05.0 PCI bridge: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 5 (rev 13)
00:06.0 PCI bridge: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 6 (rev 13)
00:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 13)
00:08.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 8 (rev 13)
00:09.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 9 (rev 13)
00:0a.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 10 (rev 13)
00:0d.0 Host bridge: Intel Corporation Device 343a (rev 13) 00:0d.1 Host bridge: Intel Corporation Device 343b (rev 13) 00:0d.2 Host bridge: Intel Corporation Device 343c (rev 13) 00:0d.3 Host bridge: Intel Corporation Device 343d (rev 13) 00:0d.4 Host bridge: Intel Corporation 5520/5500/X58 Physical Layer Port 0 (rev 13)
00:0d.5 Host bridge: Intel Corporation 5520/5500 Physical Layer Port 1 (rev 13)
00:0d.6 Host bridge: Intel Corporation Device 341a (rev 13) 00:0e.0 Host bridge: Intel Corporation Device 341c (rev 13) 00:0e.1 Host bridge: Intel Corporation Device 341d (rev 13) 00:0e.2 Host bridge: Intel Corporation Device 341e (rev 13) 00:0e.3 Host bridge: Intel Corporation Device 341f (rev 13) 00:0e.4 Host bridge: Intel Corporation Device 3439 (rev 13) 00:14.0 PIC: Intel Corporation 5520/5500/X58 I/O Hub System Management Registers (rev 13)
00:14.1 PIC: Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 13)
00:14.2 PIC: Intel Corporation 5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 13)
00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1
00:1c.4 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 5
00:1d.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1
00:1d.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2
00:1d.2 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3
00:1d.3 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6
00:1d.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90) 00:1f.0 ISA bridge: Intel Corporation 82801JIB (ICH10) LPC Interface Controller
01:03.0 VGA compatible controller: ATI Technologies Inc ES1000 (rev 02) 02:00.0 System peripheral: Hewlett-Packard Company iLO3 Slave instrumentation & System support (rev 04)
02:00.2 System peripheral: Hewlett-Packard Company iLO3 Management
Processor Support and Messaging (rev 04)
02:00.4 USB Controller: Hewlett-Packard Company Proliant iLO2/iLO3 virtual USB controller (rev 01)
03:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
03:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
04:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
04:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
05:00.0 RAID bus controller: Hewlett-Packard Company Smart Array G6 controllers (rev 01)
09:00.0 Ethernet controller: Intel Corporation 82599EB 10-Gigabit SFI/SFP+ Network Connection (rev 01)
09:00.1 Ethernet controller: Intel Corporation 82599EB 10-Gigabit SFI/SFP+ Network Connection (rev 01)
机器上有Broadcom的千兆网卡和intel的万兆网卡,型号分别是BCM5709和
82599EB
二、查看网卡驱动
两个
:
方法1:lspci -vvv
09:00.1 Ethernet controller: Intel Corporation 82599EB 10-Gigabit SFI/SFP+ Network Connection (rev 01)
Subsystem: Intel Corporation Ethernet Server Adapter X520-2
Physical Slot: 2
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
SERR-
srcversion: ECE369A7D0A9096343A3B3F
alias: pci:v000014E4d0000163Csv*sd*bc*sc*i*
alias: pci:v000014E4d0000163Bsv*sd*bc*sc*i* alias: pci:v000014E4d0000163Asv*sd*bc*sc*i*
pci:v000014E4d00001639sv*sd*bc*sc*i* alias:
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.32-131.21.1.tb477.el6.x86_64 SMP mod_unload modversions
parm: disable_msi:Disable Message Signaled Interrupt (MSI) (int)
modinfo ixgbe
filename: /lib/modules/2.6.32-131.21.1.tb477.el6.x86_64/kernel/drivers/net/ixgbe/ixgbe.ko
version: 3.0.12-k2-1
license: GPL
description: Intel(R) 10 Gigabit PCI Express Network Driver author: Intel Corporation, srcversion: 612CB82E4460BB4174B1E2C
alias: pci:v00008086d00001528sv*sd*bc*sc*i* alias: pci:v00008086d000010F8sv*sd*bc*sc*i* alias: pci:v00008086d0000151Csv*sd*bc*sc*i*
alias: pci:v00008086d00001529sv*sd*bc*sc*i* alias: pci:v00008086d0000152Asv*sd*bc*sc*i* alias: pci:v00008086d000010F9sv*sd*bc*sc*i* alias: pci:v00008086d00001514sv*sd*bc*sc*i* alias: pci:v00008086d00001507sv*sd*bc*sc*i* alias: pci:v00008086d000010FBsv*sd*bc*sc*i* alias: pci:v00008086d00001517sv*sd*bc*sc*i* alias: pci:v00008086d000010FCsv*sd*bc*sc*i* alias: pci:v00008086d000010F7sv*sd*bc*sc*i* alias: pci:v00008086d00001508sv*sd*bc*sc*i* alias: pci:v00008086d000010DBsv*sd*bc*sc*i* alias: pci:v00008086d000010F4sv*sd*bc*sc*i* alias: pci:v00008086d000010E1sv*sd*bc*sc*i* alias: pci:v00008086d000010F1sv*sd*bc*sc*i* alias: pci:v00008086d000010ECsv*sd*bc*sc*i* alias: pci:v00008086d000010DDsv*sd*bc*sc*i* alias: pci:v00008086d0000150Bsv*sd*bc*sc*i* alias: pci:v00008086d000010C8sv*sd*bc*sc*i* alias: pci:v00008086d000010C7sv*sd*bc*sc*i*
pci:v00008086d000010C6sv*sd*bc*sc*i* alias:
alias: pci:v00008086d000010B6sv*sd*bc*sc*i* depends: mdio,dca
vermagic: 2.6.32-131.21.1.tb477.el6.x86_64 SMP mod_unload
modversions
parm: IntMode:Change Interrupt Mode (0=Legacy, 1=MSI,
2=MSI-X), default 2 (array of int)
parm: FdirMode:Flow Director filtering modes (0=Off, 1=Hashing) default 1 (array of int)
parm: max_vfs:Maximum number of virtual functions to allocate
per physical function (uint)
方法2: ethtool
ethtool -i eth3
driver: bnx2
version: 2.1.6
firmware-version: bc 5.2.2 NCSI 2.0.6
bus-info: 0000:03:00.1
ethtool -i eth0
driver: ixgbe
version: 3.0.12-k2-1
firmware-version: 3.13-0
bus-info: 0000:09:00.0
四、如何查看网络接口队列数
cat /proc/interrupts | grep eth0
53: 4143055 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 IR-PCI-MSI-edge eth0-TxRx-0
54: 20 4143035 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 IR-PCI-MSI-edge eth0-TxRx-1
55: 20 0 4143035 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 IR-PC
I-MSI-edge eth0-TxRx-2
56: 20 0 0 4143035 0
0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 IR-PCI-MSI-edge eth0-TxRx-3
57: 20 0 0 0 4143035
0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 IR-PCI-MSI-edge eth0-TxRx-4
58: 20 0 0 0 0 4143035 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 IR-PCI-MSI-edge eth0-TxRx-5
59: 20 0 0 0 0
0 4143035 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 IR-PCI-MSI-edge eth0-TxRx-6
60: 20 0 0 0 0
0 0 4143035 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 IR-PCI-MSI-edge eth0-TxRx-7
61: 20 0 0 0 0
0 0 0 4143035 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 IR-PCI-MSI-edge eth0-TxRx-8
62: 20 0 0 0 0
0 0 0 0 4143035 0 0
0 0 0 0 0 0
0 0 0 0 0 0 IR-PCI-MSI-edge eth0-TxRx-9
63: 20 0 0 0 0
0 0 0 0 0 4143035 0
0 0 0 0 0 0
0 0 0 0 0 0 IR-PCI-MSI-edge eth0-TxRx-10
64: 20 0 0 0 0
0 0 0 0 0 0 4143035
0 0 0 0 0 0
0 0 0 0 0 0 IR-PCI-MSI-edge eth0-TxRx-11
65: 20 0 0 0 0
0 0 0 0 0 0 0
4143035 0 0 0 0 0
0 0 0 0 0 0 IR-PCI-MSI-edge eth0-TxRx-12
66: 20 0 0 0 0
0 0 0 0 0 0 0
0 4143035 0 0 0 0
0 0 0 0 0 0 IR-PCI-MSI-edge eth0-TxRx-13
67: 20 0 0 0 0
0 0 0 0 0 0 0
0 0 4143035 0 0 0
0 0 0 0 0 0 IR-PCI-MSI-edge eth0-TxRx-14
68: 20 0 0 0 0
0 0 0 0 0 0 0
0 0 0 4143035 0 0
0 0 0 0 0 0 IR-PCI-MSI-edge eth0-TxRx-15
69: 20 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 4143035 0
0 0 0 0 0 0 IR-PCI-MSI-edge eth0-TxRx-16
70: 20 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 4143035
0 0 0 0 0 0 IR-PCI-MSI-edge eth0-TxRx-17
71: 20 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 4143035 0 0 0 0 0 IR-PCI-MSI-edge eth0-TxRx-18
72: 20 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0
0 4143035 0 0 0 0 IR-PCI-MSI-edge eth0-TxRx-19
73: 20 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 4143035 0 0 0 IR-PCI-MSI-edge eth0-TxRx-20
74: 20 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 4143035 0 0 IR-PCI-MSI-edge eth0-TxRx-21
75: 20 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 4143035 0 IR-PCI-MSI-edge eth0-TxRx-22
76: 20 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 4143035 IR-PCI-MSI-edge eth0-TxRx-23
77: 38 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 IR-PCI-MSI-edge eth0:lsc
可以看到有24个队列
另外,ethtool也可以看到:
ethtool -S eth0
NIC statistics:
rx_packets: 0
tx_packets: 0
rx_bytes: 0
tx_bytes: 0
rx_pkts_nic: 0
tx_pkts_nic: 0
rx_bytes_nic: 0
tx_bytes_nic: 0
lsc_int: 38
tx_busy: 0
non_eop_descs: 0
rx_errors: 0
tx_errors: 0
rx_dropped: 0
tx_dropped: 0
multicast: 0
broadcast: 0
rx_no_buffer_count: 0
collisions: 0
rx_over_errors: 0
rx_crc_errors: 0
rx_frame_errors: 0
hw_rsc_aggregated: 0
hw_rsc_flushed: 0
fdir_match: 0
fdir_miss: 0
rx_fifo_errors: 0
rx_missed_errors: 0
tx_aborted_errors: 0
tx_carrier_errors: 0
tx_fifo_errors: 0
tx_heartbeat_errors: 0
tx_timeout_count: 0
tx_restart_queue: 0
rx_long_length_errors: 0
rx_short_length_errors: 0
tx_flow_control_xon: 0
rx_flow_control_xon: 0
tx_flow_control_xoff: 0
rx_flow_control_xoff: 0
rx_csum_offload_errors: 0
alloc_rx_page_failed: 0
alloc_rx_buff_failed: 0
rx_no_dma_resources: 0
fcoe_bad_fccrc: 0
rx_fcoe_dropped: 0
rx_fcoe_packets: 0
rx_fcoe_dwords: 0
tx_fcoe_packets: 0
tx_fcoe_dwords: 0
tx_queue_0_packets: 0
tx_queue_0_bytes: 0
tx_queue_1_packets: 0
tx_queue_1_bytes: 0
tx_queue_2_packets: 0
tx_queue_2_bytes: 0
tx_queue_3_packets: 0
tx_queue_3_bytes: 0
tx_queue_4_packets: 0
tx_queue_4_bytes: 0
tx_queue_5_packets: 0
tx_queue_5_bytes: 0
tx_queue_6_packets: 0
tx_queue_6_bytes: 0
tx_queue_7_packets: 0
tx_queue_7_bytes: 0
tx_queue_8_packets: 0
tx_queue_8_bytes: 0
tx_queue_9_packets: 0
tx_queue_9_bytes: 0
tx_queue_10_packets: 0
tx_queue_10_bytes: 0
tx_queue_11_packets: 0
tx_queue_11_bytes: 0
tx_queue_12_packets: 0
tx_queue_12_bytes: 0
tx_queue_13_packets: 0
tx_queue_13_bytes: 0
tx_queue_14_packets: 0
tx_queue_14_bytes: 0
tx_queue_15_packets: 0
tx_queue_15_bytes: 0
tx_queue_16_packets: 0
tx_queue_16_bytes: 0
tx_queue_17_packets: 0
tx_queue_17_bytes: 0
tx_queue_18_packets: 0
tx_queue_18_bytes: 0
tx_queue_19_packets: 0
tx_queue_19_bytes: 0
tx_queue_20_packets: 0
tx_queue_20_bytes: 0
tx_queue_21_packets: 0
tx_queue_21_bytes: 0
tx_queue_22_packets: 0
tx_queue_22_bytes: 0
tx_queue_23_packets: 0
tx_queue_23_bytes: 0
rx_queue_0_packets: 0
rx_queue_0_bytes: 0
rx_queue_1_packets: 0
rx_queue_1_bytes: 0
rx_queue_2_packets: 0
rx_queue_2_bytes: 0
rx_queue_3_packets: 0
rx_queue_3_bytes: 0
rx_queue_4_packets: 0
rx_queue_4_bytes: 0
rx_queue_5_packets: 0
rx_queue_5_bytes: 0
rx_queue_6_packets: 0
rx_queue_6_bytes: 0
rx_queue_7_packets: 0
rx_queue_7_bytes: 0
rx_queue_8_packets: 0
rx_queue_8_bytes: 0
rx_queue_9_packets: 0
rx_queue_9_bytes: 0
rx_queue_10_packets: 0
rx_queue_10_bytes: 0
rx_queue_11_packets: 0
rx_queue_11_bytes: 0
rx_queue_12_packets: 0
rx_queue_12_bytes: 0
rx_queue_13_packets: 0
rx_queue_13_bytes: 0
rx_queue_14_packets: 0
rx_queue_14_bytes: 0
rx_queue_15_packets: 0
rx_queue_15_bytes: 0
rx_queue_16_packets: 0
rx_queue_16_bytes: 0
rx_queue_17_packets: 0
rx_queue_17_bytes: 0
rx_queue_18_packets: 0
rx_queue_18_bytes: 0
rx_queue_19_packets: 0
rx_queue_19_bytes: 0
rx_queue_20_packets: 0
rx_queue_20_bytes: 0
rx_queue_21_packets: 0
rx_queue_21_bytes: 0
rx_queue_22_packets: 0
rx_queue_22_bytes: 0
rx_queue_23_packets: 0
rx_queue_23_bytes: 0
本文档为【linux查看网卡型号、驱动版本、队列数(精品)】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。