[SunHELP] ndd and /dev/hme

sunhelp at sunhelp.org sunhelp at sunhelp.org
Tue Jun 5 17:22:06 CDT 2001


> I can use ndd to get and set many driver properties of the NIC card in my
> SUN server. But when there are more than one card present, ie three in my
> case, how do I specify which card I am changing? Or am I missing a concept
> here? Thanks.

 Put your ndd settings in a little rc script under the /etc/rc2.d directory. Each
interface is grouped by the "ndd -set /dev/hme instance #" line.

i.e.-    (the following sets /dev/hme0)

  ndd -set /dev/hme instance 0
  ndd -set /dev/hme adv_autoneg_cap 0
  ndd -set /dev/hme adv_100T4_cap 0
  ndd -set /dev/hme adv_100fdx_cap 1
  ndd -set /dev/hme adv_100hdx_cap 0
  ndd -set /dev/hme adv_10fdx_cap 0
  ndd -set /dev/hme adv_10hdx_cap 0

        (the following sets /dev/hme1)

  ndd -set /dev/hme instance 1
  ndd -set /dev/hme adv_autoneg_cap 0
  ndd -set /dev/hme adv_100T4_cap 0
  ndd -set /dev/hme adv_100fdx_cap 1
  ndd -set /dev/hme adv_100hdx_cap 1
  ndd -set /dev/hme adv_10fdx_cap 0
  ndd -set /dev/hme adv_10hdx_cap 0


 -david





More information about the SunHELP mailing list