linux| 网卡驱动

时间:2024-04-14 14:44:40

查看网卡型号

# lspci | grep "Eth"
linux| 网卡驱动

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

linux| 网卡驱动

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

查看网卡驱动信息

ethtool -i eth2

linux| 网卡驱动

modinfo i40e

linux| 网卡驱动

升级网卡驱动

将网卡驱动升级至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