1835243 Members
2442 Online
110078 Solutions
New Discussion

Set Lan card settings.

 
SOLVED
Go to solution
Gino Castoldi_2
Honored Contributor

Set Lan card settings.

Hi,

Server: L2000, HP-UX 11.0.


I want to hard-code the Lan card settings on a single port
NIC to 100FD with auto-negotiation set to OFF.
The switch is already set to these settings.

How do I check these settings and how do I make the changes permanent (thru reboots)?

BTW: I do not want to use SAM.
(I prefer the command line).

An ioscan -kfnC lan shows:
lan 2 0/6/0/0 btlan6 CLAIMED INTERFACE PCI Ethernet (10110019)
/dev/diag/lan2 /dev/ether2 /dev/lan2

10 points to any good answer.
Thank you Gino.


17 REPLIES 17
Ralph Grothe
Honored Contributor
Solution

Re: Set Lan card settings.

Gino,

have a look at the init config file

/sbin/init.d/hp
Madness, thy name is system administration
Stefan Farrelly
Honored Contributor

Re: Set Lan card settings.


For the btlan6 driver you need to edit the config file;
/etc/rc.config.d/hpsppci100conf

Theres comments in the file on what to do - really easy to see SPEED to 100FD, then reboot.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Ralph Grothe
Honored Contributor

Re: Set Lan card settings.

forgot,

if you're interested to see the commandline args for lanadmin command simply grep the init script

e.g.

grep -i lanadmin /sbin/init.d/hpbtlan
Madness, thy name is system administration
Ralph Grothe
Honored Contributor

Re: Set Lan card settings.

Argh, made a mistake,
of course the config files reside in
/etc/rc.config.d
as Stefan correctly wrote
Madness, thy name is system administration
Brian Killeen_1
Advisor

Re: Set Lan card settings.

Find out what lan card you are using...
eg..

ioscan -kf|grep lan
lan 0 0/0/0/0 btlan3 CLAIMED INTERFACE HP PCI 10/100Base-TX Core
lan 1 0/4/0/0/4/0 btlan CLAIMED INTERFACE HP A5506B PCI 10/100Base-TX 4 port
lan 2 0/4/0/0/5/0 btlan CLAIMED INTERFACE HP A5506B PCI 10/100Base-TX 4 port
lan 3 0/4/0/0/6/0 btlan CLAIMED INTERFACE HP A5506B PCI 10/100Base-TX 4 port
lan 4 0/4/0/0/7/0 btlan CLAIMED INTERFACE HP A5506B PCI 10/100Base-TX 4 port



Looks like it is lan2 you are changing....
Check the Speed setting for PPA # 2 ie lan2

eg..

lanadmin -x 2
Current Speed = 100 Full-Duplex Auto-Negotiation-OFF

Find current driver for the lan in question that is loaded into kernel


eg..

what /stand/vmunix|grep btlan



Find current driver for (in this example) btlan5 loaded into kernel

$what /stand/vmunix|grep btlan5
100BT : btlan5.c PCI 100BT Cleanup PHNE_24006 B.11.00.08 $Revision: 1.77 $ $Date: 2001/05/08 15:00:00 $


This then will let you know the Config file used to set speed/duplex mode for this lan driver :
/etc/rc.config.d/hppci100conf

This is were you can hard code the speed setting
Jean-Louis Phelix
Honored Contributor

Re: Set Lan card settings.

Hi,

Here is a mix of previous answers ...

- to make a change, Ralph told you to look at your startup script (/sbin/init.d/hpsppci100). You will find here examples of generated commands using lanadmin in the header (with PPA, not instance numbers)

- to make this change permanent across reboots, modify the file given by Stefan (/etc/rc.config.d/hpsppci100conf)

Regards.
It works for me (© Bill McNAMARA ...)
Gino Castoldi_2
Honored Contributor

Re: Set Lan card settings.

Hi,

Thank you for your answers.

Question, is auto-negotiation always turned-off/disabled unless you set it on?

10 points to any good answer.
Thank you Gino.
Stefan Farrelly
Honored Contributor

Re: Set Lan card settings.


Unless you set the speed manually auto-negotiation is ON by default. To turn if off you need to set the speed manually at BOTH ends - the switch/hub as well as on your HP server.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Robert-Jan Goossens
Honored Contributor

Re: Set Lan card settings.

Hi Gino,

Beleave it's the other way, autoneg is default on.


Kind Regards,

Robert-Jan.

Cheryl Griffin
Honored Contributor

Re: Set Lan card settings.

btlan6 would use /etc/rc.config.d/hpsppci100conf

Here's info for the rest of the cards:
driver /etc/rc.config.d /sbin/init.d
btlan0 hpeisabtconf hpeisabt
btlan1 hpbasetconf hpbaset
btlan3 hpbase100conf hpbase100
btlan4 hpgsc100conf hpgsc100
btlan5 hppci100conf hppci100
btlan6 hpsppci100conf hpsppci100
intl100 hpintl100conf hpintl100


current speed:
# lanadmin -x
Use nmid for 10.20 and before, ppa for 10.30 and after.

xxx_INTERFACE_NAME: Name of interface (lan0, lan1...)
xxx_STATION_ADDRESS: MAC address of interface (configured with lanadmin)
xxx_SPEED: set the card speed. Value are : 10HD, 10FD, 100HD, 100FD, auto_on.
Cheryl
"Downtime is a Crime."
Gino Castoldi_2
Honored Contributor

Re: Set Lan card settings.

Hi Stefan, Robert-Jan, Cheryl,
et al.

How exactly do you set Auto-negotiation to off? I need this option to be hard-coded
because the switch will be set
to 100FD, auto-neg=off so the
Lan Card needs to have the same options too.

Does just setting thse two options for the Lan Card
A)100FD and B) not setting auto-neg to ON resolve this problem? Is there a line in the /etc/rc.config.d/hp*
that needs to be included
for auto-neg to equal OFF?

10 points to any good answer.
Thank you Gino.


Stefan Farrelly
Honored Contributor

Re: Set Lan card settings.

Hi Gino,

to ensure auto-neg is off all you need to do at the HP end is set it explicitly in the config file to a speed (say 10 or 100). This stops auto-neg. There is no separate paremeter for auto-neg.

The switch end is as you have described - set to a speed and the parameter auto-neg=off.

Im from Palmerston North, New Zealand, but somehow ended up in London...
Robert-Jan Goossens
Honored Contributor

Re: Set Lan card settings.

Hi Gino,

Stefan is right, just set it to the disered speed will set autoneg is off.

King regards and a good weekend.

Robert-Jan.
Robert-Jan Goossens
Honored Contributor

Re: Set Lan card settings.

just adding some info.

db001:/etc/rc.config.d# lanadmin -x 0
Current Speed = 100 Full-Duplex Auto-Negotiation-OFF


db001:/etc/rc.config.d# more hpbase100conf
#####################################################################
# @(#) hpbase100conf $Revision: 1.4 $ $Date: 99/07/14 13:35:13 $
# hpbase100conf : contains configuration values for HP 100Mb interfaces
#
# HP_BASE100_INTERFACE_NAME Name of interface (lan0, lan1...)
# HP_BASE100_STATION_ADDRESS Station address of interface
# configured through lanadmin(1m)
# Prefixed with "0x".
# HP_BASE100_SPEED Manually set the driver's speed. Can be
# one of: 10HD, 10FD, 100HD, 100FD, auto_on
#
# The interface name, major number, card instance and nmid|ppa may be
# obtained from the lanscan(1m) command.
#
# The station address and speed are set through the lanadmin(1m)
# command.
#
#####################################################################

HP_BASE100_INTERFACE_NAME[0]=lan0
HP_BASE100_STATION_ADDRESS[0]=0x001083FF5AE3
HP_BASE100_SPEED[0]=100FD

###########################################################################
# The HP_BASE100_INIT_ARGS are reserved by HP. They are NOT user changable.

HP_BASE100_INIT_ARGS="HP_BASE100_STATION_ADDRESS HP_BASE100_SPEED"

# End of hpbase100conf configuration file


Robert-Jan.
V. Nyga
Honored Contributor

Re: Set Lan card settings.

Hi Gino,

when you set speed manually then auto-neg is off.

Also see:
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062912155

Regards
Volkmar
*** Say 'Thanks' with Kudos ***
Bill Hassell
Honored Contributor

Re: Set Lan card settings.

An important note: if this LAN card is not part of a ServiceGuard package (if you don't know about SG then this LAN card is not part of one), don't hardcode the LAN's MAC address in the config file! It can cause really complicated problems in the future. Set the speed and the name but not the MAC address.


Bill Hassell, sysadmin
subhashni
Regular Advisor

Re: Set Lan card settings.

Hello,
I would like to set my NIC card to autoneg on with giga bit speed.Please help
Thanks
unix4me