James wrote:
> Hello,
> 
> Currently, I manage gentoo system that have a variety of 10 and 100 MB/s
> ethernet cards. I use lshw to distinguish the max ethernet port speed:
> 
<snip>
>
> Is this reliable? What if a 10/100 card is plugged into a 10MB/s hub?

Have you tried mii-tool?

quasar ~ # mii-tool -v int0
int0: negotiated 1000baseT-FD flow-control, link ok
  product info: Yukon 88E1011 rev 5
  basic mode:   autonegotiation enabled
  basic status: autonegotiation complete, link ok
  capabilities: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 
10baseT-HD
  advertising:  1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD 
flow-control
  link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 
10baseT-HD flow-control

-- 
Ricardo Saffi Marques
http://www.las.ic.unicamp.br/~saffi/
======================================================
Laboratory of System Administration and Security - LAS
Institute of Computing - IC
P.O. Box: 6176
University of Campinas - UNICAMP
13083-852, Campinas, SP, Brazil
======================================================


Reply via email to