万兆光模块无法识别问题

Linux ixgbe网卡(光模块)兼容性问题

ixgbe光纤网卡的驱动在默认情况下不支持第三方兼容光模块,会导致网卡驱动加载失败
表现为: 执行lspci |grep 82599能看到网卡在pci设备中

06:00.0 Ethernet controller: Intel Corporation 82599EB 10-Gigabit SFI/SFP+ Network Connection (rev 01) 
06:00.1 Ethernet controller: Intel Corporation 82599EB 10-Gigabit SFI/SFP+ Network Connection (rev 01) 

但是使用ip addr或者ifconfig -a命令,却找不到网卡,使用demsg可以看到以下出错信息:
ixgbe 0000:06:00.0: failed to load because an unsupported SFP+ module type was detected 

解决问题的方法是: 

  • 卸载ixgbe驱动(万兆网卡的驱动)
    rmmod ixgbe 

  • 再加载ixgbe参数
    modprobe ixgbe allow_unsupported_sfp=1

对allow_unsupported_sfp的解释 

allow_unsupported_sfp:Allow unsupported and untested SFP+ modules on 82599-based adapters (uint)
重新加载后,大部分情况下ifconfig或ip addr就能够看到网卡信息了。

猜你喜欢

转载自www.cnblogs.com/raymike90/p/10350858.html