SUMMARY: SunFire V240 - lock ethernet interface

From: Brett Hales <brett.hales_at_baesystems.com>
Date: Tue Dec 02 2003 - 17:37:59 EST
Thanks to Stella Kong for the below reply:-

I used option 2 and it worked fine.


------------------------------------------------------------------------

Hi Brett:

As a document Sun had provided (ID70401) there is 2 solutions:

1. Create script in /etc/rc2.d to force it to set it to 100fdx everytime
system when system reboot.

Create script /etc/rc2.d/S68net_tune

#!/sbin/sh
# /etc/rc2.d/S68net-tune
PATH=/usr/bin:/usr/sbin
echo "Implementing Solaris ndd Tuning Changes "
# bge-Interfaces
# Force bge0 to 100fdx autoneg off
ndd -set /dev/bge0 adv_1000fdx_cap 0
ndd -set /dev/bge0 adv_1000hdx_cap 0
ndd -set /dev/bge0 adv_100fdx_cap 1
ndd -set /dev/bge0 adv_100hdx_cap 0
ndd -set /dev/bge0 adv_10fdx_cap 0
ndd -set /dev/bge0 adv_10hdx_cap 0
ndd -set /dev/bge0 adv_autoneg_cap 0

Make the script executable:
# chmod 755 /etc/rc2.d/S68net_tune

After the script is run, you will see that the nic is set to 100fdx
autoneg
off.

2. 

BGE.CONF
To force bge interface to 100mbps full duplex, put the following entries
in
/platform/sun4u/kernel/drv/bge.conf
A reboot is required for this method.

adv_1000fdx_cap=0;
adv_1000hdx_cap=0;
adv_100fdx_cap=1;
adv_100hdx_cap=0;
adv_10fdx_cap=0;
adv_10hdx_cap=0;
adv_autoneg_cap=0;

NOTE: Using bge.conf will force all instances of bge to the speed/duplex
specified in the file. Use ndd to force individual instances if for
example
bge0 needs to be 10hdx and bge1 needs to be 100fdx.

Regards,
Stella




On Tue, 2003-12-02 at 15:12, Brett Hales wrote:
> Hi,
> 
> I am trying to lock the Ethernet interface (bge0) on a SUN Fire V240 to
> 100fdx.
> 
> I can successfully do this by using the below in a script.
> 
> ndd -set /dev/bge0 adv_1000fdx_cap 0
> ndd -set /dev/bge0 adv_1000hdx_cap 0
> ndd -set /dev/bge0 adv_100fdx_cap 1 
> ndd -set /dev/bge0 adv_100hdx_cap 0
> ndd -set /dev/bge0 adv_10fdx_cap 0
> ndd -set /dev/bge0 adv_10hdx_cap 0
> ndd -set /dev/bge0 adv_autoneg_cap 0
> 
> However I would prefer to put these in /etc/system as I have done in the
> past.
> 
> I have tried the following.
> 
> set bge0:adv_1000fdx_cap=0
> set bge0:adv_1000hdx_cap=0
> set bge0:adv_100fdx_cap=1
> set bge0:adv_100hdx_cap=0
> set bge0:adv_10fdx_cap=0
> set bge0:adv_10hdx_cap=0
> set bge0:adv_autoneg_cap=0
> 
> However I still see the following in messages.
> 
> Dec  2 14:42:03 abuxet1 bge: [ID 801725 kern.info] NOTICE: bge0: link up
> 100Mbps Half-Duplex (initialised)
> 
> Can anybody tell me what should be in /etc/system to lock bge0 to
> 100fdx.
> 
> Thanks,
>  
-- 
Brett Hales <brett.hales@baesystems.com>
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Tue Dec 2 17:37:55 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:24 EST