1. 查看網卡信息
lspci | grep -i 'eth'
1a:00.0 Ethernet controller: Intel Corporation Ethernet Connection X722 for 10GbE SFP+ (rev 09)
1a:00.1 Ethernet controller: Intel Corporation Ethernet Connection X722 for 10GbE SFP+ (rev 09)
1a:00.2 Ethernet controller: Intel Corporation Ethernet Connection X722 for 1GbE (rev 09)
1a:00.3 Ethernet controller: Intel Corporation Ethernet Connection X722 for 1GbE (rev 09)
3b:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
3b:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
-
第一列表示的網卡編號
-
后面展示有2個10G,2個1G,2個擴展10G口,其中板載的是
X722
網卡,擴展的為82599ES
網卡,通過查詢得知82599ES為X520
類型。
2. 安裝驅動
- 到對應官網下載對應的tar壓縮文件
tar zxvf ixgbe-5.3.3.tar.gz
- 進入到對應目錄查看
README
文件,該文件敘述了支持的網卡型號以及安裝方法 rmmod ixgbe
卸載原驅動- 進入
src
目錄進行make install
ip link show
查看- 加載網卡驅動
modprobe ixgbe
或modprobe ixgbe allow_unsupported_sfp=1,1
- 通過
ethtool eth0
查看對應網卡端口
3. 查看網卡驅動版本
[root@xxx tmp]# ethtool -i eth0
driver: i40e #所使用的驅動模塊名稱
version: 1.5.10-k #驅動版本
firmware-version: 3.2d 0x80000b8a 255.65535.255
expansion-rom-version:
bus-info: 0000:1a:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: yes
4.查看模塊更多信息
[root@wxxxx ~]# modinfo i40e
filename: /lib/modules/3.10.0-123.6.1.el6.ksyun.x86_64/updates/drivers/net/ethernet/intel/i40e/i40e.ko
version: 2.4.10
license: GPL
description: Intel(R) 40-10 Gigabit Ethernet Connection Network Driver
author: Intel Corporation, <e1000-devel@lists.sourceforge.net>
srcversion: 3977C21019A3C4865FF253A
alias: pci:v00008086d0000158Bsv*sd*bc*sc*i*
alias: pci:v00008086d0000158Asv*sd*bc*sc*i*
alias: pci:v00008086d000037D3sv*sd*bc*sc*i*
alias: pci:v00008086d000037D2sv*sd*bc*sc*i*
alias: pci:v00008086d000037D1sv*sd*bc*sc*i*
alias: pci:v00008086d000037D0sv*sd*bc*sc*i*
alias: pci:v00008086d000037CFsv*sd*bc*sc*i*
alias: pci:v00008086d000037CEsv*sd*bc*sc*i*
alias: pci:v00008086d00001588sv*sd*bc*sc*i*
alias: pci:v00008086d00001587sv*sd*bc*sc*i*
alias: pci:v00008086d00001589sv*sd*bc*sc*i*
alias: pci:v00008086d00001586sv*sd*bc*sc*i*
alias: pci:v00008086d00001585sv*sd*bc*sc*i*
alias: pci:v00008086d00001584sv*sd*bc*sc*i*
alias: pci:v00008086d00001583sv*sd*bc*sc*i*
alias: pci:v00008086d00001581sv*sd*bc*sc*i*
alias: pci:v00008086d00001580sv*sd*bc*sc*i*
alias: pci:v00008086d00001574sv*sd*bc*sc*i*
alias: pci:v00008086d00001572sv*sd*bc*sc*i*
depends: ptp
vermagic: 3.10.0-123.6.1.el6.ksyun.x86_64 SMP mod_unload modversions
parm: debug:Debug level (0=none,...,16=all) (int)
5.問題
- 有網卡識別不了。通過
dmesg
查看是由於模塊問題
ixgbe 0000:3b:00.1: PCI INT B -> GSI 44 (level, low) -> IRQ 44
ixgbe 0000:3b:00.1: setting latency timer to 64
ixgbe: 0000:3b:00.1: ixgbe_check_options: FCoE Offload feature enabled
ixgbe 0000:3b:00.1: failed to load because an unsupported SFP+ or QSFP module type was detected.
ixgbe 0000:3b:00.1: Reload the driver after installing a supported module.
方法:
rmmod ixgbe
刪除驅動
modprobe ixgbe allow_unsupported_sfp=1,1
然后ifconfig即可。