linux | 网卡驱动
生活随笔
收集整理的這篇文章主要介紹了
linux | 网卡驱动
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
linux 到對應官網下載對應的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查看對應網卡端口 有網卡識別不了。通過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.
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. 安裝驅動
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: yes4.查看模塊更多信息
[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.問題
方法:
rmmod ixgbe刪除驅動
modprobe ixgbe allow_unsupported_sfp=1,1
然后ifconfig即可。
轉載于:https://www.cnblogs.com/hbgzy/p/10266546.html
總結
以上是生活随笔為你收集整理的linux | 网卡驱动的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C++学习札记(2011-09-30)
- 下一篇: Python为何能成为数据分析的主流工具