Linux查看网卡驱动|更新驱动

查看网卡型号

# lspci | grep "Eth"

  • Intel Corporation I350 为Intel的双口千兆网卡
  • x722是一款板载以太网卡模块,提供2个10GE端口和2个GE端口
  • x710为扩展网卡,有2个10G口
  • x722和x710的网卡驱动模块都为i40e

扩展卡为82599ES网卡,通过查询得知82599ES为X520类型。驱动为ixgbe

查看网卡驱动信息

ethtool -i eth2

modinfo i40e

升级网卡驱动

将网卡驱动升级至2.4.10版本

tar zxf i40e-2.4.10.tar.gz

cd  i40e-2.4.10/src

make install

rmmod i40e ;modprobe i40e (该操作必须同时执行,否则会有网络中断风险)

ethtool命令

ethtool eth0

Settings for eth0:
        Supported ports: [ FIBRE ]     #光纤口
        Supported link modes:   10000baseT/Full 
        Supported pause frame use: Symmetric
        Supports auto-negotiation: No
        Advertised link modes:  10000baseT/Full 
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: No
        Speed: 10000Mb/s
        Duplex: Full
        Port: Other
        PHYAD: 0
        Transceiver: external
        Auto-negotiation: off
        Supports Wake-on: d
        Wake-on: d
        Current message level: 0x00000007 (7)
                               drv probe link
        Link detected: yes

ethtool eth1

Settings for eth1:
        Supported ports: [ TP ]      #电口
        Supported link modes:   10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Half 1000baseT/Full 
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Half 1000baseT/Full 
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: Yes
        Speed: Unknown!
        Duplex: Unknown! (255)
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: on
        MDI-X: Unknown
        Supports Wake-on: g
        Wake-on: g
        Current message level: 0x000000ff (255)
                               drv probe link timer ifdown ifup rx_err tx_err
        Link detected: no

  • 1
    点赞
  • 29
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值