SUMMARY NIC question

From: Random (random@mo.net)
Date: Thu Nov 05 1998 - 13:10:12 CST


Thanks to the following people:

Navi Sirisena
Wolf Schaefer
Seth Livingston
Tom Erickson

Using either the ndd command or the output from dmesg will point you in
the direction of what speed and/or duplex the NIC is set to.

Navi was kind enough to point out that the older low speed cards do not
support full-duplex. Therefore netstat -i will show if you are configured
as
hme or le. le represents the older nic unable to do full duplex. hme is
the
newer nic capable of full duplex, but comes standard set to half and must
be manually configured

Original post:
________________________________________________
Does anyone know how to check the nic on a sparc10 to see if
it is set to full or half duplex??? I've checked the man pages and
the archive w/no luck. Any help would be appreciated!

Will summarize.

_______________________________________________
Random

     "Imagination is more important than knowledge"
                                                -A. Einstein
_______________________________________________

And here are the responses that I have recieved:

______________________
First off, unless you've added a FastEthernet card, the built in le0 NIC
in the sparc10's do not support full-duplex and only support 10Mb/sec. The
newer cards, hme interfaces, support the 100Mb/sec and full-duplex
protocol.

If you have an hme card in your system and are running Solaris 2.x you can
run the ndd command:

# ndd -get /dev/hme link_speed

and

# ndd -get /dev/hme link_mode

A value of 1 for the speed means 100Mb/sec and a value of 1 for mode says
you're running full duplex. A zero, on the other hand, means 10Mb/sec and
half duplex.

Good luck

************************************
                                   *
John Malick - Systems Engineering *
Star Systems Engineering *
140 Roosevelt Ave. *
York, PA. 17404 *
                                   *
(717) 854-5911 Phone *
(717) 852-9421 Fax *
john@starinc.com Email *
www.starinc.com Web Site *
                                   *
************************************

On Thu, 5 Nov 1998, Random wrote:

> Does anyone know how to check the nic on a sparc10 to see if
> it is set to full or half duplex??? I've checked the man pages and
> the archive w/no luck. Any help would be appreciated!
>
> Will summarize.
>
> _______________________________________________
> Random
>
> "Imagination is more important than knowledge"
> -A. Einstein
> _______________________________________________
>
>

Check out ndd(1M). 'ndd /dev/hme \?' will spit out the options - one of
them tells the status (forget which).

--
Peter Laws    N5UWY   |  Systems Management and Radar Technology Team
plaws@nssl.noaa.gov   |    National Severe Storms Lab, Norman, Okla

if you do dmesg, usually the last coupleof lines tells you what spee dyour NIC is set to.

Navi

> -----Original Message----- > From: Random [SMTP:random@mo.net] > Sent: Thursday, November 05, 1998 9:58 AM > To: sun-managers@sunmanagers.ececs.uc.edu > Subject: NIC question > > Does anyone know how to check the nic on a sparc10 to see if > it is set to full or half duplex??? I've checked the man pages and > the archive w/no luck. Any help would be appreciated! > > Will summarize. > > _______________________________________________ > Random > > "Imagination is more important than knowledge" > -A. Einstein > ______________________________________________

You should be able to get the info on hme with the following commands.

- set the device instance: ndd -set /dev/hme instance 0 this makes the next commands apply to hme0. Similarly, to set to hme1, simply say ndd -set /dev/hme instance 1

- query parameters for the set instance: ndd -get /dev/hme link_status 0 = link up, 1 = link down ndd -get /dev/hme link_speed 0 = 10MBit, 1 = 100MBit ndd -get /dev/hme link_mode 0 = half duplex, 1 = full duplex ndd -get /dev/hme adv_autoneg_cap 0 = no autonegotiation, 1 = autoneg. enabled

- set parameters, e.g. ndd -set /dev/hme instance 0 ndd -set /dev/hme adv_autoneg_cap 1 to enable autonegotiation for hme0

for a full list of what can be queried and set for /dev/hme, do ndd /dev/hme \?

Wolf

i do a dmesg | grep -i duplex...

seth

I'm pretty sure you will use ndd - the man page on ndd should tell you how to get information out of it rather than setting anything.

Tom Erickson

___ >

_

_________________________ Random

"Imagination is more important than knowledge" -A. Einstein

_______________________________________________



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:52 CDT