我使用 Debian 来处理我的事情,但是当我配置速度 1000 和全双工时,会出现错误
我使用的确切命令: ethtool -s eth0 autoneg 关闭速度 1000 全双工
Cannot set new settings: Invalid argument
not setting speed
not setting duplex
not setting autoneg
Cannot set new settings: Invalid argument
not setting speed
not setting duplex
not setting autoneg
这是我的 eth0 信息。
Settings for eth0:
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
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: g
Wake-on: d
Link detected: yes
driver: bnx2
version: 2.1.11
firmware-version: bc 3.5.12 ipms 1.6.0
bus-info: 0000:04:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: no
有人能告诉我哪个地方是错误吗?
答案1
你试过了吗,
sudo ethtool -s eth0 speed 1000 duplex full autoneg off
但我支持 Zoredache 的评论,您可能不应该强制链接速度,除非没有它就无法工作,否则您应该将机器设置为自动协商,并确保网络端口设置为正确的速度。
答案2
自动协商是一种要求根据 IEEE 802.3-2002 规范的第 28D.5 节使用 1000BASE-T,因此您不能禁用 1000BASE-T 的自动协商。
尝试 -
sudo ethtool -s eth0 speed 1000 duplex full autoneg on