首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不能禁用自动装置(如通过伦理工具)

不能禁用自动装置(如通过伦理工具)
EN

Server Fault用户
提问于 2020-08-16 13:34:46
回答 1查看 1.9K关注 0票数 0

我想禁用NIC的auto-negotiation特性,我运行以下命令

代码语言:javascript
复制
$sudo ethtool -s ens1f0 speed 10000 duplex full autoneg off

然后,我检查它是否通过ethtool ens1f0生效:

代码语言:javascript
复制
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: yes

autoneg还在运行,为什么不能工作?

更新2020/8/22

我的网卡是82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb,我发现在某些情况下,10GBASE-T链接的auto-neg功能可以关闭。

  1. 奇怪的是,NIC的两个端口具有不同的autoneg状态。我真的很困惑。
代码语言:javascript
复制
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: yes
  1. 当端口不与对等端连接时,autoneg将关闭。
代码语言:javascript
复制
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
EN

回答 1

Server Fault用户

发布于 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的下列主要用途:

  • 协商PHY有能力支持10 10GBASE传输。
  • 以确定链接两端的PHYs之间的主从关系。
  • 以确定本地PHY是否执行PMA训练模式重置。
  • 以确定本地PHY是否支持EEE功能。
  • 以确定本地PHY是否支持快速再培训能力。
票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1030317

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档