随着宽带技术的快速发展,服务器使用万兆网卡的概率越来越高。最近装了几台服务器都用的万兆网卡,为了图便宜,网卡和模块都是淘宝上买的,这部还真遇到不少问题。

我的服务器都是centos6.4 64位的,网卡装上后,lspci | grep 82599 能看到网卡

执行lspci |grep 82599能看到网卡在pci设备中

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

但是ifcfg -a 看不到网卡比如p2p1

使用dmesg | grep ixgbe 发现报错,说发现不支持的光模块,查看intel82599使用手册嘿,里面还真说了,那些网卡经过测试, 意思这些默认是支持的。

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.

后然百度发现有篇文章说到光模块兼容性问题,马上试了一下,果然解决了。

rmmod ixgbe 先删除驱动

重新加载驱动,

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

lspci能看到ifconfig -a看不到网卡的更多相关文章

  1. linux下ifconfig命令看不到IP centos7——ens33

    当前环境VMware15+centos7  在终端输入ifconfig后没有开到IP地址: 解决方法:root用户执行命令 cd /etc/sysconfig/network-scripts/ vi ...

  2. centos6.7安装系统后看不到网卡无法配置IP的解决办法

    新安装centos6.7后发现/etc/sysconfig/network-scripts目录下没有eth0的网卡配置,通过ifconfig可以看到eth0的硬件地址 于是新建网卡输入一下内容 # c ...

  3. vmware ubuntu 看不到网卡或连接不到网络

    执行以下命令就可以重新请求 dhcp 服务器,一般就可以联网了, ens33 是网卡名称,根据自己的情况替换 sudo dhclient ens33 右上角网络图标消失 # 先停止服务 sudo se ...

  4. msyql -3m架构详解

    我们先来回顾一下mmm的概念,它是一套灵活的基于perl编写的脚本程序,自己本身不提供mysql服务的功能,它是用来对mysql replication 进行监控和故障迁移,并能管理mysql Mas ...

  5. linux中eth0原何变成了eth1

    Linux的网卡由eth0变成了eth1,如何修复使用wmware安装了linux,安装成功后,使用的网卡是eth0,没有eth1.但是用过一段时间后,不知道为什么eth0无法使用,系统却自动生成了e ...

  6. wifi驱动移植

    目标板:Hi3518 内核版本:linux3.0.8   1.修改makefile #PLATFORM = PC //注释掉 PLATFORM = HI3518 //支持平台 ifeq ($(PLAT ...

  7. 移植RT2870无线网卡驱动到s3c2416

    公司项目要用到usb无线网卡,芯片是ralink的RT2870.以下是将其驱动移植到s3c2416的步骤. 1.下载驱动源码,雷凌官网的下载地址是: http://www.ralinktech.com ...

  8. 每天一个linux命令(52):ifconfig命令

    许多windows非常熟悉ipconfig命令行工具,它被用来获取网络接口配置信息并对此进行修改.Linux系统拥有一个类似的工具,也就是ifconfig(interfaces config).通常需 ...

  9. 每天一个linux命令(44):ifconfig命令

    许多windows非常熟悉ipconfig命令行工具,它被用来获取网络接口配置信息并对此进行修改.Linux系统拥有一个类似的工具,也就是ifconfig(interfaces config).通常需 ...

随机推荐

  1. MyBatis For .NET学习-问题总结

    1. MyBatis在进行sqlserver与c# 类型转换时需要注意,sqlserver中dbtype为float时,c#需要使用double与之对应,而不能使用float或decimal 2. M ...

  2. HashMap底层原理

    原文出自:http://zhangshixi.iteye.com/blog/672697 1.    HashMap概述: HashMap是基于哈希表的Map接口的非同步实现.此实现提供所有可选的映射 ...

  3. vue指令与组件

    参考http://blog.csdn.net/lioldamon/article/details/74058222?utm_source=itdadao&utm_medium=referral ...

  4. linux环境上运行.net core 初探

    1.安装 .net core 环境 rpm --import https://packages.microsoft.com/keys/microsoft.ascsh -c 'echo -e " ...

  5. i.MX 6Q开发环境配置

    #适用于 Ubuntu 14.04 x64   imx6qdl-cubox-i.dtsi   #更新系统 sudo apt-get update sudo apt-get upgrade   #安装基 ...

  6. HBuilder 详细使用方法 -------------参考 :http://www.runoob.com/w3cnote/hbuilder-intro.html

    HBuilder是DCloud(数字天堂)推出的一款支持HTML5的Web开发IDE.HBuilder的编写用到了Java.C.Web和Ruby.HBuilder本身主体是由Java编写,它基于Ecl ...

  7. 使用.NET Core和Vue搭建WebSocket聊天室

    博客地址是:https://qinyuanpei.github.io.  WebSocket是HTML5标准中的一部分,从Socket这个字眼我们就可以知道,这是一种网络通信协议.WebSocket是 ...

  8. MySql中concat函数的用法(链接字符串)

    MySQL中concat函数使用方法:CONCAT(str1,str2,…) 返回结果为连接参数产生的字符串.如有任何一个参数为NULL ,则返回值为 NULL. 注意:如果所有参数均为非二进制字符串 ...

  9. 【转载】showModalDialog returnValue is undefined in Google Chrome

    showModalDialog returnValue is undefined in Google Chrome Posted on August 22, 2012by briancaos For ...

  10. Spring Boot 中yml配置文件

    步骤一:yml格式 现在大家发现,在springboot里还是要用到配置文件的. 除了使用.properties外,springboot还支持 yml格式. 个人觉得yml格式的可读性和..prope ...