SUMMARY: Force different speed on separate NICs via /etc/system

From: Steve Dubinskiy <sdubinskiy_at_verticalnet.com>
Date: Thu Nov 29 2001 - 14:32:45 EST
Thanx to all the folks who replied. its always nice to know that there is
somebody out there looking out for me.

In particular:

Ron Dinwiddie
Samir Sethi
Bryan Moore
Sergey Katalichenka
Chris Ciborowski
William Enestvedt
Ken Germann
Julian Simpson
Tomas Knox
and the one who's called "The UNIX Mighty!" :)

I've had several suggestions, but it looks like majority are saying that I
will have to write a start-up ndd script which will configure NICs one by
one.

Sergey was nice enough to send me a copy of a doc he found somewhere which
describes nicely on how to use the ndd command and how to tackle the
multiple NIC with different speeds issue.

Once again thanx for all of your help... here is the doc:

1. Using ndd command:

 These changes will only survive until the until the next reboot. to make
 them permanent they must be set in /etc/system if you only have the one
 instance or /kernel/drv/hme.conf if you have multiple interfaces and you
 want to change other than instance 0.

 (a small startup script can be created to change the settings via ndd
when
  multiple instances are involved).

Following commands set hme0 interface to 100Mbps halfduplex mode:

 root# ndd -set /dev/hme instance 0

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

following commands set hme1 interface to 10Mbps fullduplex mode:

root# ndd -set /dev/hme instance 1

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


following commands set hme2 interface to 10Mbps fullduplex mode:

 root# ndd -set /dev/hme instance 2

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


2. For permanent entries you can create a script in the /etc/rc2.d directory
   if each hme interface has a different configuration. If that is the case,
   then just use ndd commands as specified in above in section 1.

   It is usually recommended that the script be called S95net-tune to
indicate
   that this particular script is specific to tuning network parameters on
that specific host.

   If all the interfaces are going to have the same configuration then you
   canadd those parameters in /etc/system file, reboot and it will take
effect
   for all the instances of hme.

   For example, the following lines in /etc/system file will force all the
   interfaces to 100-Mbps Full-duplex mode:

       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




 

>  -----Original Message-----
> From: 	Steve Dubinskiy  
> Sent:	Thursday, November 29, 2001 10:09 AM
> To:	'sunmanagers@sunmanagers.org'
> Subject:	Force different speed on separate NICs via /etc/system
> 
> Hello managers.
> 
> I can't find an answer for this.
> 
> I have two NICs on Solaris 8: hme0 and hme1 which are on different
> networks
> I want to force hme0 to run 100fdx and hme1 10fdx
> 
> I can do this manually using the ndd command, but I don't know the syntax
> for /etc/system to make the change permanent
> I found something that will force same speed for all NICs on the system
> set hme:hme_adv_autoneg_cap=0 
> set hme:hme_adv_100fdx_cap=1 
> set hme:hme_adv_100hdx_cap=0 
> set hme:hme_adv_10hdx_cap=0 
> set hme:hme_adv_10fdx_cap=0 
> 
> This will force 100fdx on all NICs.
> 
> Does anybody have any idea what the syntax is for the /etc/system to set
> different NICs at different speeds?
> 
> thanx
> 
> Steve
> 
> P.S. document I used as a reference is @
> http://www.unixguide.net/sun/manager/12.3.shtml
> 
> 
============================================================================
This message is intended only for the use of the Addressee(s) and may
contain information that is PRIVILEGED and CONFIDENTIAL. If you are not
the intended recipient, dissemination of this communication is prohibited.
If you have received this communication in error, please erase all copies
of the message and its attachments and notify postmaster@verticalnet.com
immediately.
============================================================================
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Nov 29 13:40:22 2001

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:29 EST