Debian
debian set eth0 autoneg off speed 1000 duplex full: Invalid argument
我使用 debian 做我的事情,但是當我配置速度 1000 和雙工滿時出現錯誤
我使用的確切命令: ethtool -s eth0 autoneg off speed 1000 duplex full
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
誰能告訴我哪個是錯誤的地方?
你試過了嗎,
sudo ethtool -s eth0 speed 1000 duplex full autoneg off
但我支持 Zoredache 的評論,您可能不應該強制連結速度,除非沒有它就無法工作,否則您應該將機器設置為 autoneg,並確保網路埠設置為正確的速度。
根據 IEEE 802.3-2002 規範的第 28D.5 節,自動協商是使用 1000BASE-T 的要求,因此您不能禁用 1000BASE-T 的自動協商。
嘗試 -
sudo ethtool -s eth0 speed 1000 duplex full autoneg on