大网数据广告活动
服务器运维问答

How to enable ethernet 1 Gigabit advertising or troubleshoot the situation?

· 52CE 我爱测

On an Debian Stretch box, I have a Gigabit ethernet network adapter, but this mode is not active (however displayed as supported). Does this depend on the peripheral condition (i.e. cable is not good enough, another one box has a…

问题原文

原帖链接 · J. Doe · CC BY-SA 3.0

On an Debian Stretch box, I have a Gigabit ethernet network adapter, but this mode is not active (however displayed as supported).

Does this depend on the peripheral condition (i.e. cable is not good enough, another one box has an older i.e. only 100 Mbit network controller - or can I somehow activate this mode?

Output of ethtool eth0:

Settings for eth0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
        Link partner advertised pause frame use: Symmetric
        Link partner advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
                               drv probe ifdown ifup
        Link detected: yes

社区高分解答

原帖链接 · Craig Watson · CC BY-SA 3.0

The key lines are:

    Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                         100baseT/Half 100baseT/Full

This likely means that the other device (most likely a switch) is not advertising 1Gbps, or that the cable in question isn't capable of supporting 1Gbps. Check both, and verify that the cable has all eight pins connected - if in doubt, switch out the cable.

You can also use mii-tool -v to verify the information from ethtool.

Alternatively, you can use ethtool to force the NIC to 1Gbps, but be aware you may lose network connectivity:

ethtool -S eth0 speed 1000 duplex full autoneg on

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-10-31)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。