lspci能看到ifconfig -a看不到網卡

 

 

隨着寬帶技術的快速發展,服務器使用萬兆網卡的機率愈來愈高。最近裝了幾臺服務器都用的萬兆網卡,爲了圖便宜,網卡和模塊都是淘寶上買的,這部還真遇到很多問題。centos

個人服務器都是centos6.4 64位的,網卡裝上後,lspci | grep 82599 能看到網卡服務器

執行lspci |grep 82599能看到網卡在pci設備中app

04:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)測試

可是ifcfg -a 看不到網卡好比p2p1ui

使用dmesg | grep ixgbe 發現報錯,說發現不支持的光模塊,查看intel82599使用手冊嘿,裏面還真說了,那些網卡通過測試, 意思這些默認是支持的。.net

ixgbe 0000:04:00.0: setting latency timer to 64
ixgbe 0000:04:00.0: failed to load because an unsupported SFP+ module type was detected.
ixgbe 0000:04:00.0: Reload the driver after installing a supported module.blog

後然百度發現有篇文章說到光模塊兼容性問題,立刻試了一下,果真解決了。ci

rmmod ixgbe 先刪除驅動it

從新加載驅動,io

modprobe ixgbe allow_unsupported_sfp=1,1 

驅動對allow_unsupported_sfp的解釋爲:

allow_unsupported_sfp:Allow unsupported and untested SFP+ modules on 82599-based adapters (uint),即允

許82599網卡使用不兼容SFP+模塊。

從新加載後,大部分狀況下ifconfig就可以看到網卡信息了。

另外若是遇到安裝驅動等問題,能夠參考intel網卡的readme,裏面很全面,不過是英文的。

硬件方面注意模塊的光波長,單/多模,光纖收發等。默認支持的模塊以下:

SFP+ Devices with Pluggable Optics
----------------------------------


82599-BASED ADAPTERS
--------------------


NOTES:
- If your 82599-based Intel(R) Network Adapter came with Intel optics or is an
  Intel(R) Ethernet Server Adapter X520-2, then it only supports Intel optics
  and/or the direct attach cables listed below.
- When 82599-based SFP+ devices are connected back to back, they should be
  set to the same Speed setting via ethtool. Results may vary if you mix
  speed settings.


Supplier        Type                                    Part Numbers
--------        ----                                    ------------
SR Modules
Intel           DUAL RATE 1G/10G SFP+ SR (bailed)       FTLX8571D3BCV-IT
Intel           DUAL RATE 1G/10G SFP+ SR (bailed)       AFBR-703SDZ-IN2
Intel           DUAL RATE 1G/10G SFP+ SR (bailed)       AFBR-703SDDZ-IN1
LR Modules
Intel           DUAL RATE 1G/10G SFP+ LR (bailed)       FTLX1471D3BCV-IT
Intel           DUAL RATE 1G/10G SFP+ LR (bailed)       AFCT-701SDZ-IN2
Intel           DUAL RATE 1G/10G SFP+ LR (bailed)       AFCT-701SDDZ-IN1


The following is a list of 3rd party SFP+ modules that have received some
testing. Not all modules are applicable to all devices.


Supplier        Type                                    Part Numbers
--------        ----                                    ------------
Finisar         SFP+ SR bailed, 10g single rate         FTLX8571D3BCL
Avago           SFP+ SR bailed, 10g single rate         AFBR-700SDZ
Finisar         SFP+ LR bailed, 10g single rate         FTLX1471D3BCL
Finisar         DUAL RATE 1G/10G SFP+ SR (No Bail)      FTLX8571D3QCV-IT
Avago           DUAL RATE 1G/10G SFP+ SR (No Bail)      AFBR-703SDZ-IN1
Finisar         DUAL RATE 1G/10G SFP+ LR (No Bail)      FTLX1471D3QCV-IT
Avago           DUAL RATE 1G/10G SFP+ LR (No Bail)      AFCT-701SDZ-IN1


Finisar         1000BASE-T SFP                          FCLF8522P2BTL
Avago           1000BASE-T                              ABCU-5710RZ
HP              1000BASE-SX SFP                         453153-001


82599-based adapters support all passive and active limiting direct attach
cables that comply with SFF-8431 v4.1 and SFF-8472 v10.4 specifications.(基於這兩個協議的模塊都支持)

有一點很奇怪的是,個人光模塊是Finisar FTLX1471D3BCL,按道理沒有任何問題,有可能此次淘寶上買歪了。

最後感謝這篇文章:http://m.blog.csdn.net/article/details?id=40077937

相關文章
相關標籤/搜索