Nastaveni rychlosti ethernetove linky
Jan Kasprzak
kas na fi.muni.cz
Pátek Listopad 20 10:18:34 CET 2009
Dobry den,
kvuli nejakym pokusum jsem potreboval nastavit svoji ethernetovou kartu
misto 1Gb/s na 100Mb/s a zjistil jsem, ze to neumim nebo to nefunguje.
Zkusil jsem rychlost natvrdo:
ethtool -s eth0 speed 100
i menit seznam nabizenych rychlosti pro automaticke vyjednavani:
ethtool -s eth0 advertise 0xf
Neco se zrejme k ethernetove karte dostalo, protoze v obou pripadech
restartovala vyjednavani (v logu kernelu i v logu switche bylo zaznamenano
link down a pak link up), ale rychlost se vratila vzdy na 1Gb/s a seznam
nabizenych rychlosti podle ethtool se nezmenil:
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
Link detected: yes
Kdyz jsem na switchi nastavil rychlost portu na auto-100,
restartovalo se vyjednavani a dohodli se na 100Mb/s podle ocekavani.
Co delam spatne? Podle lspci je sitova karta tato:
Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
Diky,
-Yenya
--
| Jan "Yenya" Kasprzak <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839 Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/ Journal: http://www.fi.muni.cz/~kas/blog/ |
Please don't top post and in particular don't attach entire digests to your
mail or we'll all soon be using bittorrent to read the list. --Alan Cox
Další informace o konferenci Linux