尽管有 GbE 硬件,以太网仍然很慢:寻找原因

尽管有 GbE 硬件,以太网仍然很慢:寻找原因

我的家庭网络在两个盒子之间遇到了网速慢的问题。以下是规格:

方框1: 华擎 H97 性能、曼扎罗

框2: 华擎 FM2A78M-ITX+、Debian 9

转变: Netgear GS305v2

两个盒子都通过 Cat.7(10 米和 2 米)电缆连接到交换机。所以一切都应该可以使用千兆以太网,对吗?

但运行 iperf 却得到这样的结果:

[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   105 MBytes  88.5 Mbits/sec   32             sender
[  5]   0.00-10.00  sec   103 MBytes  86.6 Mbits/sec                  receiver

我应该从哪里开始寻找问题?

编辑:我在一边运行iperf3 -s另一边iperf3 -c xxx.xxx.xxx.xxx。我还通过 NFS 和 ssh 上的 rsync 测试了文件传输,结果速度相同。

ethtoolDebian 机器上的输出:

Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        MDI-X: Unknown
        Current message level: 0x000060e4 (24804)
                               link ifup rx_err tx_err hw wol
        Link detected: yes

在 Manjaro 机器上:

Settings for enp0s25:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: No
        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: 100Mb/s
        Duplex: Half
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: off
        MDI-X: off (auto)
Cannot get wake-on-lan settings: Operation not permitted
        Current message level: 0x00000007 (7)
                               drv probe link
        Link detected: yes

看起来 Manjaro 接口仅设置了 100Mb/s。

答案1

启用网络接口的自动协商并ethtool -s enp0s25 autoneg on修复它。

感谢您为我指明正确的方向!

相关内容