Operating System - HP-UX
1833750 Members
3150 Online
110063 Solutions
New Discussion

Setting Duplex and Speed Values for a Lan Card

 
SOLVED
Go to solution
John_44
Advisor

Setting Duplex and Speed Values for a Lan Card

Okay I am stumped, doesn't take much but anyway, how or where can I set the values for speed and duplex on a lan card on 11.00 and 10.20. I am getting these errors on startup;

Configure HP GSC 100BT interfaces
Output from "/sbin/rc2.d/S331hpgsc100 start":
----------------------------
ERROR: invalid duplex value for lan1 interface
ERROR: invalid duplex value for lan0 interface

Everything works fine but I don't understand why I am getting these errors. Any and all help would be appreciated. Many thanks in advance.

Regards,
John


9 REPLIES 9
Victor BERRIDGE
Honored Contributor

Re: Setting Duplex and Speed Values for a Lan Card

Hi
what does lanadmin cmd give you?:
> lanadmin -x lan0
Current Config = 100 Full-Duplex AUTONEG

#maybe you switch is stuck on simple 100

All the best
Victor
A. Clay Stephenson
Acclaimed Contributor

Re: Setting Duplex and Speed Values for a Lan Card

Hi John:

cd to /etc/rc.config.d

The filenames vary a bit between OS releases and devices but there should be something like hpgsc100conf. Edit that file and look for invalid values. If the is a D-box, you cannot set 100FD but only 100HD. I also suggest that you hard-set both the server and the switch; auto-negotiate is not very reliable. You should also check for the latest networking patches - any of these can cause your problem.

Clay
If it ain't broke, I can fix that.
Bernie Vande Griend
Respected Contributor

Re: Setting Duplex and Speed Values for a Lan Card

Probably because there is an entry in
/etc/rc.config.d/hpGSC100conf for HP_GSC100_DUPLEX probably setting it to the LAN address.

Basicially if you comment those out and just leave the INTERFACE and SPEED lines in, you should be OK. The SPEED line is really setting the duplex anyway and should be set to something like 100FD, 100HD, 10HD, 10FD, etc.
Ye who thinks he has a lot to say, probably shouldn't.
Roger Baptiste
Honored Contributor
Solution

Re: Setting Duplex and Speed Values for a Lan Card

hi,

i think there is a wrong argument in the lan setting startup script. To figure it out, do

1) lanscan
-> check what are the lancards on the system.
note theire PPA numbers, usually 0,1,2 ... (it is
the second column)

2)lanadmin -s
-> shows your current speed

3) lanadmin -x
-> shows the current setting

with this info, you can decide on what to change.
if you want to change to
fullduplex do,

lanadmin -X 100FD
-> the option after -X is
the key. To know what choice
you have, do
grep FD /etc/rc.config.d/*

Just one note, when you
change setting on the card
live, make sure users are not
on the system.

-raj
Take it easy.
James R. Ferguson
Acclaimed Contributor

Re: Setting Duplex and Speed Values for a Lan Card

Hi John:

As Clay so aptly noted, the name of the configuration file varies a bit depending on the driver and server class. Have a look here:

http://techsolutions.hp.com/fe/configs.html#config_files

Regards!

...JRF...
linuxfan
Honored Contributor

Re: Setting Duplex and Speed Values for a Lan Card

Hi John,

One of the easiest ways i have found to determine the config file for the lancards is to use the /usr/sam/lbin/laninfo command.

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Sanjay_6
Honored Contributor

Re: Setting Duplex and Speed Values for a Lan Card

Hi john,

you may also look at the latest patch for the 100BT driver,

http://us-support.external.hp.com/cki/bin/doc.pl/sid=960fc3950f6510662e/screen=ckiDisplayDocument?docId=200000055237110

Try patch PHNE_22461, PHCO_23876 & PHKL_18543

Hope this helps.

Regds
John_44
Advisor

Re: Setting Duplex and Speed Values for a Lan Card

Many thanks to everyone for their helpful and informative responses.

Regards,
John
David Owens_1
Advisor

Re: Setting Duplex and Speed Values for a Lan Card

This problem could also be a function of your network switch or hub. After determining the speed and duplexing values using lanadmin, try forcing the port on the switch to those values and take the auto-negotiation out of the equation.

I have a EISA 10/100 card on one of my servers. This is the only way it would run 100Mb on a Cisco switch. And regardless, of how many patches I loaded, it would not talk to a 3Com switch at all.

Hope this helps.

David Owens
Ingersoll-Rand