1834049 Members
2050 Online
110063 Solutions
New Discussion

Setting 100 Full Duplex

 
SOLVED
Go to solution
dictum9
Super Advisor

Setting 100 Full Duplex

OK, here is the info. My driver is btlan.

# ioscan -kfnC lan
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
lan 0 0/0/0/0 btlan CLAIMED INTERFACE HP PCI 10/100Base-TX Core
lan 1 0/1/0/0 gelan CLAIMED INTERFACE HP A4926A PCI 1000Base-SX Adapter
lan 2 0/3/0/0/4/0 btlan CLAIMED INTERFACE HP A5506A PCI 10/100Base-TX 4 Port
lan 3 0/3/0/0/5/0 btlan CLAIMED INTERFACE HP A5506A PCI 10/100Base-TX 4 Port
lan 4 0/3/0/0/6/0 btlan CLAIMED INTERFACE HP A5506A PCI 10/100Base-TX 4 Port
lan 5 0/3/0/0/7/0 btlan CLAIMED INTERFACE HP A5506A PCI 10/100Base-TX 4 Port
lan 6 0/6/0/0/4/0 btlan CLAIMED INTERFACE HP A5506A PCI 10/100Base-TX 4 Port
lan 7 0/6/0/0/5/0 btlan CLAIMED INTERFACE HP A5506A PCI 10/100Base-TX 4 Port
lan 8 0/6/0/0/6/0 btlan CLAIMED INTERFACE HP A5506A PCI 10/100Base-TX 4 Port
lan 9 0/6/0/0/7/0 btlan CLAIMED INTERFACE HP A5506A PCI 10/100Base-TX 4 Port

# grep -i lanadmin /sbin/init.d/hpbtlan

# configured through lanadmin(1m)
# NOTE : no lanadmin command is executed since defaults are in use
# lanadmin -M 1400 -X 100FD 1
# lanadmin -A 0x0800090fffff 2
# Check for lanadmin, lanscan commands
HPLANADMIN=/usr/sbin/lanadmin
if [ ! -x "$HPLANADMIN" ]; then
echo "ERROR: missing file \"$HPLANADMIN\"" >&2
# Do lanadmin commands for each interface
# the same, skip the lanadmin command. This is required
cur_mac=`lanadmin -a $PPA | awk '{print $4}'`
cur_mtu=$(lanadmin -m $PPA | awk '{ print $4 }' )
cur_spd=`lanadmin -x $PPA | awk '{print $6}'`
cur_spd=`lanadmin -x $PPA | awk '{print $4}'`
cur_dup=`lanadmin -x $PPA | awk '{print $5}'`
cur_dup=`lanadmin -x $PPA | awk '{print $5}'`
emsg=`$HPLANADMIN $ADDRESS $MTU $DUPLEX $SPEED $PPA 2>&1`
emsg=`$HPLANADMIN -X set_param refill $REFILL $ppa 2>&1`
emsg=`$HPLANADMIN -X set_param pbl $PBL $ppa 2>&1`
emsg=`$HPLANADMIN -X set_param cal $CAL $ppa 2>&1`


And here is where I manually set it. Apparently it took it, but how do I modify the above script to make this change permanent?


# lanadmin -X 100FD 0

WARNING: an incorrect setting could cause serious network problems!!!

Driver is attempting to set the new speed
Reset will take approximately 11 seconds


# lanadmin -x 0
Current Config = 100 Full-Duplex MANUAL


10 REPLIES 10
Patrick Wallek
Honored Contributor
Solution

Re: Setting 100 Full Duplex

You don't modify that script.

You modify /etc/rc.config.d/hpbtlanconf to set the speed.
Ivan Krastev
Honored Contributor

Re: Setting 100 Full Duplex

Add

HP_BTLAN_SPEED[0]=100FD


in /etc/rc.config.d/hpbtlanconf


regards,
ivan
Patrick Wallek
Honored Contributor

Re: Setting 100 Full Duplex

Just as an FYI, here is the list of drivers and the appropriate file in /etc/rc.config.d to modify for that driver:

Driver File to modify
btlan /etc/rc.config.d/hpbtlanconf
btlan0 /etc/rc.config.d/hpeisabtconf
btlan1 /etc/rc.config.d/hpbasetconf
btlan3 /etc/rc.config.d/hpbase100conf
btlan4 /etc/rc.config.d/hpgsc100conf
btlan5 /etc/rc.config.d/hppci100conf
btlan6 /etc/rc.config.d/hpsppci100conf
DCE
Honored Contributor

Re: Setting 100 Full Duplex


I usually use SAM to set it.
rariasn
Honored Contributor

Re: Setting 100 Full Duplex

My /etc/rc.config.d/hpbtlanconf file:

HP_BTLAN_INTERFACE_NAME[0]=lan1
HP_BTLAN_STATION_ADDRESS[0]=
HP_BTLAN_SPEED[0]=100FD

HP_BTLAN_INTERFACE_NAME[8]=lan8
HP_BTLAN_STATION_ADDRESS[8]=
HP_BTLAN_SPEED[8]=100FD

HP_BTLAN_INTERFACE_NAME[9]=lan0
HP_BTLAN_STATION_ADDRESS[9]=
HP_BTLAN_SPEED[9]=100FD

HP_BTLAN_INIT_ARGS="HP_BTLAN_STATION_ADDRESS HP_BTLAN_SPEED"

# End of hpbtlanconf configuration file

Configure switching ports in mode

"full-duplex-autonegotiation_off"

rgs
Frank de Vries
Respected Contributor

Re: Setting 100 Full Duplex

I go with Rariasn has published.
Especialy the attention to your port
is auto-negotation off. So it is ficed port to port.

Adapting the script is permanent during each boot.

It seems you have already tested it
successfully and your lancard
supports it. So you can safely
adapt your script as shown.



Look before you leap
dictum9
Super Advisor

Re: Setting 100 Full Duplex

rariasn

This is good info, but where do you get the HP_BTLAN_interface_name[x] from? I know what lan0, lan2 is but that number in the bracket [ ]

Patrick Wallek
Honored Contributor

Re: Setting 100 Full Duplex

That is just the index number for the value triplets.

The first triplet would be index [0], the second index [1] and so on. It does not necessarily relate to the lan? interface numbers.
rick jones
Honored Contributor

Re: Setting 100 Full Duplex

Do you _really_ have to go with hardcoding? The NICs driven by the btlan driver should autoneg just fine, so unless you are stuck with a hopelessly broken switch, leaving things at autoneg might be better.
there is no rest for the wicked yet the virtuous have no pillows
Frank de Vries
Respected Contributor

Re: Setting 100 Full Duplex

What Rick is saying is the ideal situation,
and in most cases it is like that.

However, you are then dependent on your
network hardware, event when it works well,
glitches are not unthinkable.
We had the odd incident once in a while.

The most important nodes in our network
we have hardcoded through the script.
I have had no incident at all since then.

So better the devil you know then you don't.

Look before you leap