在 Debian Stretch 盒上,我有一个千兆以太网网络适配器,但此模式未激活(但显示为支持)。
这是否取决于外围设备状况(例如,电缆不够好,另一个盒子有一个较旧的,即只有 100 Mbit 的网络控制器 - 或者我可以以某种方式激活此模式吗?
输出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
答案1
关键内容如下:
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
这可能意味着另一台设备(很可能是交换机)没有宣传 1Gbps,或者有问题的电缆无法支持 1Gbps。检查两者,并验证电缆是否已连接所有八个引脚 - 如果有疑问,请更换电缆。
您还可以使用mii-tool -v
来验证来自的信息ethtool
。
或者,您可以使用ethtool
强制 NIC 达到 1Gbps,但请注意,您可能会失去网络连接:
ethtool -S eth0 speed 1000 duplex full autoneg on