04-03-2003
9,926,
461
Join Date: Aug 2001
Last Activity: 26 February 2016, 12:31 PM EST
Location: Ashburn, Virginia
Posts: 9,926
Thanks Given: 63
Thanked 461 Times in 270 Posts
That script is rather brute force and it doesn't really answer the question. Cassy want to autonegotiate.
Cassy, that error message means that the hme driver is not loaded into the kernel. Hopefully, this is because you don't have an hme card. To find out what you do have, use:
netstat -in
and look at the first column, which is "Name". Ignore the lo0 interface, that is a loopback that enables the box to send tcp/ip to itself. Any other lines are actual interfaces. If you actually have a "hme0" or "hme1" or something, I'm going to very confused given that error message.
I guess I'll assume that you have a "qfe0". (Note that if you have a "le0", you have a very old card that can only do 10/half-duplex.)
To see the speed on qfe0, do:
ndd -set /dev/qfe instance 0
ndd -get /dev/qfe link_speed
With qfe a "1" means 100 and a "0" means 10. But each driver is a little different, this may not hold true for other cards.
Also,
ndd -get /dev/qfe \?
will show all the parameters in the qfe driver.
One of them is "adv_autoneg_cap". This controls whether or not the card is advertising autonegotiate.
Another is "lp_autoneg_cap". This is read-only but it shows you if your link partner has advertised autonegotiate.