« Hen-Pecked? | Main | How (little) women think? »

November 06, 2005

Ethernet Settings

Q: How can I force my on-board ethernet in a [e.g. V240] to be full duplex because it doesn't work with my [insert name like Nortel here] switch?

A: This question is covered on most of the sun forums. The usual answer (see this post) revolves around either modifying the kernel configuration via /platform/sun4u/kernel/drv/bge.conf or by creating a startup script called S68net-tune in rc2.d:

#!/bin/sh
# Forcing /dev/bge to 100FDX
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

Note that you may need to change bge0 to suit your particular ethernet device.

Posted by Ozguru at November 6, 2005 06:00 AM

Comments

Found a script with multiple port examples here...

#!/sbin/sh 
HMES="1 2"
for ifnum in ${HMES}; do
/usr/sbin/ndd -set /dev/hme instance ${ifnum}
/usr/sbin/ndd -set /dev/hme adv_autoneg_cap 0 # turn off autonegotiation
/usr/sbin/ndd -set /dev/hme adv_100T4_cap 0 # turn off 100mbs T4
/usr/sbin/ndd -set /dev/hme adv_100fdx_cap 1 # turn on 100mbs full-duplex
/usr/sbin/ndd -set /dev/hme adv_100hdx_cap 0 # turn off 100mbs half-duplex
/usr/sbin/ndd -set /dev/hme adv_10fdx_cap 0 # turn off 10mbs full-duplex
/usr/sbin/ndd -set /dev/hme adv_10hdx_cap 0 # turn off 10mbs half-duplex
done

Posted by: Rofl at November 7, 2005 07:33 PM

Thanks Rofl...

In case you have multiple instances, you need to select the specific hme instance first, e.g., use the following to select hme1:
ndd -set /dev/hme instance 1
Hence the reference if Rofl's script to:
/usr/sbin/ndd -set /dev/hme instance ${ifnum}

Posted by: Ozguru [TypeKey Profile Page] at November 9, 2005 09:13 PM

There are some detailed instructions for normal interfaces at spiralbound and also another post dealing with ce and bge interfaces.

Posted by: Ozguru [TypeKey Profile Page] at November 9, 2005 09:17 PM

You can also insert a name like "Cisco" - see this thread for a discussion about why.

Posted by: Rofl [TypeKey Profile Page] at November 10, 2005 06:51 AM