[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: detecting ethernet mode for Giga Nic



pnl@ielo.net a écrit :
Hi,

...
I don't know of broadcom but here what i can tell about e1000 :

e1000 does not support the mii.  Do not expect mii-{tool,diag} to work.


I know for sure that those link are in full duplex Giga mode (switch configuration and benchmark).

Anybody knows a way to get the real state of these interfaces (other tool ? /proc/* ? etc...)


ethtool (packaged) is able to view the state of e1000 interfaces.
The driver allows you to change them at load-time.

http://www.intel.com/support/network/adapter/1000/linux/e1000.htm

Furthermore, intel has some tools available that can change negotiation
parameters on the fly (and other things like VLAN or teaming) :

http://www.intel.com/support/network/adapter/1000/linux/procfg.htm


Hope this helps...


Hello.

Thanks for the pointers, I didn't know ethtool and it does work for broadcom chipset (which seems to support MII) :

# ethtool eth0
Settings for eth0:
	Supported ports: [ 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: Twisted Pair
	PHYAD: 1
	Transceiver: internal
	Auto-negotiation: on
	Supports Wake-on: g
	Wake-on: d
	Current message level: 0x000000ff (255)
	Link detected: yes

@+,
	Fab



Reply to: