Sun Microsystem's Fast Ethernet network card (NIC) is one of the most commonly
encountered pieces of hardware on a Solaris system. The card, frequently known
as an "hme card", after its device driver /dev/hme
, has many options
which can be both queried and set. These options affect the fundamental
functions of the card, such as it's duplex and line speed settings. Presented
here are some of the most common tasks an administrator encounters when dealing
with the hme cards.
/usr/sbin/ndd -set /dev/hme instance 0To find whether the card is using its onboard transceiver or its MII interface, use the following:
/usr/sbin/ndd -get /dev/hme transciever_inuseA value of 0 indicates the onboard transceiver, while a 1 indicates the MII interface is being used.
/usr/sbin/ndd -get /dev/hme link_statusA value of 0 indicates the link is down, while a value of 1 indicates the link is up.
/usr/sbin/ndd -get /dev/hme link_speed /usr/sbin/ndd -get /dev/hme link_modeA value of 0 for link_speed indicates 10Mb/s, while a value of 1 indicates 100Mb/s operation. A value of 0 for link_mode indicates half-duplex, while a value of 1 indicates full-duplex operation.
Being able to configure the manner in which the network card will operate
is important. Frequently, the autonegotiate method of determining link
speed and mode does not work between different manufacturer's equipment,
making it necessary to force the proper mode on the network card (and on
the remote end of the link).
There are several modes which the card is capable of using. The
mode names as identified by the ndd
command are as follows:
adv_autoneg_cap
- AutoNegotiateadv_100fdx_cap
- 100Mb/s Full Duplexadv_100hdx_cap
- 100Mb/s Half Duplexadv_100T4_cap
- 100baseT4adv_10fdx_cap
- 10Mb/s Full Duplexadv_10hdx_cap
- 10Mb/s Half Duplexadv_autoneg_cap
should always be turned off last, as the card will renegotiate
its link with its partner at this time.
Configuring the capabilties of the link partner is similar to configuring the actual NIC's capabilties. Once again, a setting of 0 indicates 'off', while a setting of 1 indicates 'on'.
lp_autoneg_cap
- Link partner is capable of AutoNegotiatelp_100fdx_cap
- Link partner is capable of 100Mb/s Full Duplexlp_100hdx_cap
- Link partner is capable of 100Mb/s Half Duplexlp_100T4_cap
- Link partner is capable of 100baseT4lp_10fdx_cap
- Link partner is capable of 10Mb/s Full Duplexlp_10hdx_cap
- Link partner is capable of 10Mb/s Half Duplex