帮助我理解 ethtool 的输出

帮助我理解 ethtool 的输出

我们有两台服务器连接到第三方平台。一台服务器经常出现通信问题,另一台则没有。

我使用“route”命令验证了两个服务器都使用“eth0”

当我在没有连接问题的服务器上执行“ethtool eth0”时,我得到了以下信息:

   Settings for eth0:
        Supported ports: [ Backplane ]
        Supported link modes:   100000baseKR4/Full
                                100000baseSR4/Full
                                100000baseCR4/Full
                                100000baseLR4_ER4/Full
        Supported pause frame use: Symmetric
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  100000baseKR4/Full
                                100000baseSR4/Full
                                100000baseCR4/Full
                                100000baseLR4_ER4/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Speed: 100000Mb/s
        Duplex: Full
        Auto-negotiation: on
        Port: Direct Attach Copper
        PHYAD: 0
        Transceiver: internal
        Current message level: 0x000000f7 (247)
                               drv probe link ifdown ifup rx_err tx_err
        Link detected: yes

当我检查存在严重连接问题的服务器时,我发现了很多不同之处:

Settings for eth0:
        Supported ports: [  ]
        Supported link modes:   Not reported
        Supported pause frame use: Symmetric
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: 50000Mb/s
        Duplex: Unknown! (255)
        Auto-negotiation: off
        Port: None
        PHYAD: 0
        Transceiver: internal
        Current message level: 0x000000f7 (247)
                               drv probe link ifdown ifup rx_err tx_err
        Link detected: yes

这些服务器都是托管在 Azure 上的 Ubuntu 22.04 服务器

此配置从何而来?我如何才能将其更改为与另一个相同?

答案1

尝试运行

ip -s link show eth0

lsmod这可能是由于缺少某些驱动程序,因此请尝试比较两台服务器上的输出。

相关内容