我想禁用NIC的auto-negotiation特性,我运行以下命令
$sudo ethtool -s ens1f0 speed 10000 duplex full autoneg off然后,我检查它是否通过ethtool ens1f0生效:
Settings for ens1f0:
Supported ports: [ FIBRE ]
Supported link modes: 1000baseT/Full
10000baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 10000Mb/s
Duplex: Full
Port: FIBRE
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00000007 (7)
drv probe link
Link detected: yesautoneg还在运行,为什么不能工作?
我的网卡是82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb,我发现在某些情况下,10GBASE-T链接的auto-neg功能可以关闭。
autoneg状态。我真的很困惑。Settings for ens1f0:
Supported ports: [ FIBRE ]
Supported link modes: 1000baseT/Full
10000baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 1000baseT/Full
10000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 10000Mb/s
Duplex: Full
Port: FIBRE
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
Settings for ens1f1:
Supported ports: [ FIBRE ]
Supported link modes: 10000baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: 10000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 10000Mb/s
Duplex: Full
Port: FIBRE
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00000007 (7)
drv probe link
Link detected: yesautoneg将关闭。Settings for ens1f1:
Supported ports: [ FIBRE ]
Supported link modes: 10000baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: 10000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: Unknown!
Duplex: Unknown! (255)
Port: Other
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00000007 (7)
drv probe link
Link detected: no发布于 2020-08-16 14:11:55
不可能在10 10GBASE链接上禁用自动协商。802.3标准表示此类链接的自动谈判是强制性的。其中一些原因包括:
55.6.1对自动谈判的支持所有10 10GBASE PHYs应为自动协商提供支持(第28条),并应能作为主从操作。所有10 10GBASE PHYs都应支持28.2.3.4.2中定义的扩展的下一页,并支持和使用28.2.1.1.1中定义的优化后的FLP突发定时,以及28.3.2中定义的nlp_link_test_min_timer和link_fail_inhibit_timer。自动协商是链路初始设置的一部分,允许两端的PHYs宣传其功能(速度、PHY类型、半双工或全双工),并自动选择在链路上进行通信的操作模式。自动协商信令用于10 10GBASE的下列主要用途:
https://serverfault.com/questions/1030317
复制相似问题