Operating System - HP-UX
1825624 Members
3434 Online
109683 Solutions
New Discussion

Make lanadmin settings persistent across reboots...

 
Lee Harris_5
Valued Contributor

Make lanadmin settings persistent across reboots...

Hi all,

I have an N4000-44 test server which is hooked up to our network via its core I/O 10/100BaseTX LAN card. I had a problem with the card picking up the wrong duplex setting. The Cisco switch into which it is patched has the port set to run at 100Mbps Full Duplex with Auto Negotiation turned off. I set the LAN card to run at the same speed using lanadmin -X 100FD 0 and this worked fine. However, I noticed that whenever I reboot the machine it will come up with a Half Duplex setting again.

So I edited /etc/rc.config.d/hpbtlanconf and set the parameters as follows:

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

Rebooted the server again, but it still insists on coming up at 100/Half. What gives?

Thanks - Lee
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: Make lanadmin settings persistent across reboots...

The appropriate config file is based on the driver for the lan card - look at "ioscan -kfnClan":

btlan hpbtlanconf
btlan0 hpeisabtconf
btlan1 hpbasetconf
btlan3 hpbase100conf
btlan4 hpgsc100conf
btlan5 hppci100conf
btlan6 hpsppci100conf

I suspect hpbtlanconf is the wrong one for you.


Pete

Pete
Peter Godron
Honored Contributor

Re: Make lanadmin settings persistent across reboots...

Lee,
poster of thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=882621
had the same problem.
Solution was to edit the correct file for lan card.
Lee Harris_5
Valued Contributor

Re: Make lanadmin settings persistent across reboots...

Thanks for the responses guys, although i think i've cracked it...

I was editing the correct file...

[gbaheu36]/etc/rc.config.d=$ ioscan -kfnClan
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

/dev/diag/lan0 /dev/ether0 /dev/lan0
lan 1 0/10/0/0 btlan CLAIMED INTERFACE HP A5230A/B5509BA PCI 10/
100Base-TX Addon
/dev/diag/lan1 /dev/ether1 /dev/lan1
lan 2 0/12/0/0 igelan CLAIMED INTERFACE HP A6825-60101 PCI 1000Ba
se-T Adapter

But I had put the HP_BTLAN_INTERFACE_NAME parameter incorrectly, i was using PPA number (0) rather than Interface Name (lan0). changed it and it now works fine :-)

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

Thanks