Home Technical Articles Solaris How do I change the speed of a network adapter?
How do I change the speed of a network adapter? PDF Print E-mail
Written by Peter   

sunlogo.gifThere are two ways:

add the following entries to /etc/system:

  • Set all hme interfaces to 100MB full duplex
  • set hme:hme_adv_autoneg_cap=0
  • set hme:hme_adv_100T4_cap=0
  • set hme:hme_adv_100fdx_cap=1
  • set hme:hme_adv_100hdx_cap=0
  • set hme:hme_adv_10fdx_cap=0
  • set hme:hme_adv_10hdx_cap=0
  • End hme interfaces


The above example will force all adapters on to 100mb full duplex

The other way is as follows:


Use the ndd command:

ndd /dev/hme instance
    Returns the currently selected adapter 0=hme0 1=hme1 2=hme2 etc
ndd /dev/hme link_mode
    Returns the duplex 1=full 0=half
ndd /dev/hme link_speed
    Returns the speed 1=100 0=half
ndd /dev/hme link_status
    Returns the status of the link 1=up 0=down

To set the options you will use the -set option

The following script is an example of setting one adapter to 100mb and the
other one to 10mb:

ndd -set /dev/hme instance 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
ndd -set /dev/hme adv_autoneg_cap 0

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

The above will set /dev/hme0 to 100mb and /dev/hme2 to 10mb half duplex
for more information try "man ndd"
Last Updated on Sunday, 24 January 2010 09:33
 
SoluFlex

Login Form



Who's Online

We have 3 guests online

Statistics

Members : 149
Content : 37
Web Links : 6
Content View Hits : 38776