我的家庭網路中兩個盒子之間的網路速度較慢。以下是規格:
方框1: 華擎 H97 性能, 曼札羅
方框2: 華擎 FM2A78M-ITX+, Debian 9
轉變: 網件 GS305v2
兩個盒子都透過 Cat.7(10m 和 2m)電纜連接到交換器。所以一切都應該適用於千兆以太網,對吧?
然而運行 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 和 rsync 透過 ssh 測試檔案傳輸,結果是相同的速度。
ethtool
debian 機器上的輸出:
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
修復它。
感謝您為我指明了正確的方向!