看一个网卡最大能支持多大速度,不应该看lspci,而应该看ethtool的“Supported link modes”

219 篇文章 2 订阅

 

Why interface speed of 10G (10000Mb/s) is not getting set on a '1/10-Gigabit Server Adapter' ?

 SOLUTION 已验证 - 已更新 2014年三月19日05:18 - 

English 

环境

  • Red Hat Enterprise Linux (Any version)
  • NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter

问题

  • In lspci output, card is getting displayed as 1/10-Gigabit server adapter ,but still the maximum speed that can be configured is 1G (1000mb/s) , why ?
  • Below is the ethtool output:

Raw

Settings for eth2:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Half 1000baseT/Full 
        Supports auto-negotiation: Yes
        Advertised link modes:  100baseT/Half 100baseT/Full 
                                1000baseT/Half 1000baseT/Full 
        Advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 2
        Transceiver: external
        Auto-negotiation: off
        Supports Wake-on: g
        Wake-on: g
        Link detected: yes
  • Setting a speed of 10000Mb/s fails with error.

决议

  • Even if the card reports 10G / 1/10-Gigabit Server Adapter in lspci output, but as per information from hardware vendor (HP) it is not capable of 10G.
  • As shown in ethtool the maximum speed which this card support is 1000baseT/Half 1000baseT/Full :

Raw

Supported link modes:   10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Half 1000baseT/Full <<---

根源

  • ethtool display the details fetched from the underlying hardware depending upon its supported features. If required feature is not seen then its an problem of underlying hardware. Here in this case HP confirmed that its not a 10G capable card even if in lspci output 1/10-Gigabit Server Adapter is seen.

诊断步骤

  • Check the maximum speed supported by NIC in ethtool ethX output against supported link modes field.
  • If there is no 10G seen (10000T/Half) seen, then in order to have 10gig speed, check with hardware vendor to find whether the underlying hardware has a support for 10Gig link speed or whether it requires any upgrades to support it.
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值