install ethtool net-tools
# ethtool eth0Ausgabe:
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 32
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000007 (7)
Link detected: yes
Oder verwenden Sie den Befehl mii-tool wie folgt:
# mii-tool eth0Ausgabe:
eth0: negotiated 100baseTx-FD flow-control, link ok
Aufgabe: Ändern der Geschwindigkeits- und Duplex-Einstellungen
Legen Sie die aushandelte Geschwindigkeit für eth0 mit mii-tool fest
Deaktivieren Sie die automatische Aushandlung (Autonegotiation) und erzwingen Sie für die MII-Schnittstelle entweder 100baseTx-FD, 100baseTx-HD, 10baseT-FD oder 10baseT-HD:
# mii-tool -F 100baseTx-HD
# mii-tool -F 10baseT-H
Legen Sie die aushandelte Geschwindigkeit für eth0 mit ethtool fest
# ethtool -s eth0 speed 100 duplex full
# ethtool -s eth0 speed 10 duplex half
