1833187 Members
3135 Online
110051 Solutions
New Discussion

LanConfig setting

 
David Lockwood
Advisor

LanConfig setting

I have 150 C3700 workstations which have their lan card hardcode at 100/Full_duplex. This was done at installation by:

Interrupt the boot sequence
co
lc 100/Full_duplex

I now need to change all these machines to AUTO_detect. Do I have to go to each machine and change it manually or is there some setting I can change remotly and then do a remote reboot.

I know I can do a lanadmin -X AUTO_ON but this is not kept after a subsequent reboot.

Thanks
6 REPLIES 6
Mel Burslan
Honored Contributor

Re: LanConfig setting

lc directive on the boot menu does not actually affect your main lan interface as far as I know. It is only valid for the systems with Lan Console connections, hence the LC.

If you want to change this setting on your Lan Console ports actually, I do not know any other way that doing it one by one at the boot time. On the other hand if you are talking about the network interface(s) then you are talking about something else.

First determine your driver type by running
# ioscan -fkC lan
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
lan 0 10/8/1/0 btlan CLAIMED INTERFACE HSC 10/100Base-TX K-Class

here is the driver you are looking for is "btlan"

if you look into the file:
# cat /etc/rc.config.d/hpbtlanconf
...
...
HP_BTLAN_INTERFACE_NAME[0]=lan1
HP_BTLAN_STATION_ADDRESS[0]=0x0060B0598689
HP_BTLAN_SPEED[0]=100FD
...
...
HP_BTLAN_INIT_ARGS="HP_BTLAN_STATION_ADDRESS HP_BTLAN_SPEED"

and in this file, the value that nails the speed and duplex settings is the one below:

HP_BTLAN_SPEED[0]=100FD

if you delete the 100FD directive, it will act as auto sensing. And as a rule of thumb I usually do not put the STATION_ADDRESS, as this may cause complications if you happen to replace this card due to failure or something like that.

After completing this step, you need to stop and restart the network card drivers, which can be done by

/sbin/init.d/hpbtlan stop
/sbin/init.d/hpbtlan start

if your driver is not btlan but something else, just replace the name of your driver in the filenames referenced above, this will do it.

Hope this helps
________________________________
UNIX because I majored in cryptology...
Bharat Katkar
Honored Contributor

Re: LanConfig setting

David,
There is some confusion. If you are talking about the command LC then it is given in GSP mode. LC is used to change setting of LanConsole Port parameters. Now that you just want to change the speed then you can telnet to the LAN CONSOLE Port, login with root and Press B
This takes youi to GSP and then you go to command mode prompt.

But if you are not able to telnet the LANCONSOLE becuase of this Speed Parameter then i am afraid you will be only able to to do this from Console's which mean you physically have to reach all locations. :)

Regards,
You need to know a lot to actually know how little you know
David Lockwood
Advisor

Re: LanConfig setting

I think I have caused confusion. The sequence is:

interrupt the boot sequence on the C3700
type co to enter configuration mode
type LanConfig 100/Full_duplex to hardcode the lan card of the workstation (these machines do not have lan consoles)

I have tried changing the /etc/rc.config.d/hpbtlanconf file and it works a treat.

Thanks
Steven E. Protter
Exalted Contributor

Re: LanConfig setting

You will probably get half duplex speeds out of these machines if you make the change.

This era NIC card, 100 BT requires manual switch setting and hard coded speed in order to function correctly.

If you are going to change something, change the switch.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
rick jones
Honored Contributor

Re: LanConfig setting

I'm going to disagree with Stephen - I've used the "lan3" 100BT interface (aka core 10/100 BT on many PA-RISC-based systems (until the PA-8800's IIRC) in AUTO mode fine for years. That is not to say there are not switches out there with which that will not be the case but still...

I would go in and double check on the machines that once they are booted to the OS that they are _still_ in 100FD, and that there is not a hard-coding to 100FD in one of the btlan config files in /etc/ (IIRC) .

As for the lanadmin -X bit, if worst came to worst, you could simply find somewhere in the boot sequence to issue that command by adding a custom startup script.

(See what happens when people start hard-coding NIC settings ?-) :) :)
there is no rest for the wicked yet the virtuous have no pillows
Geoff Wild
Honored Contributor

Re: LanConfig setting

Easier to change the switch...

Strange - we just went through an exercise last year - where the network guys hard set the switches - IE - disabled auto-negotiate. So we in turn set our LAN cards via the driver in /etc/rc.config.d

IE: in hpigelanconf

HP_IGELAN_SPEED[0]=100FD


Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.