Operating System - HP-UX
1833207 Members
2806 Online
110051 Solutions
New Discussion

Re: speed and duplexing in APA

 
SOLVED
Go to solution
Daniel Sanabria
Advisor

speed and duplexing in APA

Hi,

APA is running over HP-UX B.11.11 with 2 ports forming each aggregated link.

At the moment the ports are configured with AUTO-NEGOTIATE mode, what can I do to permanently change/force the mode to be 100FD in each interface?

Yes the NICs supports 100FD….
15 REPLIES 15
Mel Burslan
Honored Contributor

Re: speed and duplexing in APA

run command

ioscan -fknC lan

find your lan card specific driver, like btlan or igelan etc.

go to /etc/rc.config.d

vi hpigelanconf

you will see a block of interface specifications, for igelan driver, there are something like 10-11 paramaters. you are only interested in the interface name (lan0, lan1, etc) and the interface speed.

on the interface name line, put your lanX instance number, and on the interface speed line, put 100FD (trivial I believe)

repeat the block changing (increasing by 1) the index between the square brackets, for instance [1],

save the file

execute

/sbin/init.d/hpigelan stop
/sbin/init.d/hpigelan start

verify by executing

lanadmin -x 0 (for lan0)
lanadmin -x 1 (for lan1)
...
repeat as necessary

hope this helps.
________________________________
UNIX because I majored in cryptology...
Daniel Sanabria
Advisor

Re: speed and duplexing in APA

My cards are using the btlan, I change the parameters for the name and the speed of port 12 and port 16 but I'm getting an error when restarting the driver:

HP_BTLAN_INTERFACE_NAME[1]=lan16
HP_BTLAN_SPEED[1]=100FD

mar2> /sbin/init.d/hpbtlan start
ERROR: "lan12", the value of INTERFACE_NAME at index 0, is not found or invalid
ERROR: "lan16", the value of INTERFACE_NAME at index 1, is not found or invalid
IT_2007
Honored Contributor

Re: speed and duplexing in APA

what is lanscan output?

You are specifying wrong lan card name. It should be something like lan900 or whatever you specified in netconf file.

HP_BTLAN_INTERFACE_NAME[0]=lan900 <<--- this
HP_BTLAN_STATION_ADDRESS[0]=
HP_BTLAN_SPEED[0]=
Daniel Sanabria
Advisor

Re: speed and duplexing in APA

lanscan output below:

lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/1/2/0 0x0014C210E29F 0 UP lan0 snap0 1 ETHER Yes 119
0/2/1/0/6/0 0x001279FE26C2 10 UP lan10 snap10 4 ETHER Yes 119
0/2/1/0/7/0 0x001279FE26C3 9 UP lan9 snap9 5 ETHER Yes 119
0/3/1/0/5/0 0x001279FE26AD 7 UP lan7 snap7 7 ETHER Yes 119
0/3/1/0/6/0 0x001279FE26AE 6 UP lan6 snap6 8 ETHER Yes 119
0/3/1/0/7/0 0x001279FE26AF 5 UP lan5 snap5 9 ETHER Yes 119
0/4/1/0/5/0 0x001279FE26ED 3 UP lan3 snap3 11 ETHER Yes 119
0/4/1/0/6/0 0x001279FE26EE 2 UP lan2 snap2 12 ETHER Yes 119
0/4/1/0/7/0 0x001279FE26EF 1 UP lan1 snap1 13 ETHER Yes 119
0/6/1/0/6/0 0x001279FE4792 14 UP lan14 snap14 16 ETHER Yes 119
0/6/1/0/7/0 0x001279FE4793 13 UP lan13 snap13 17 ETHER Yes 119
LinkAgg0 0x001279FE26EC 900 UP lan900 snap900 19 ETHER Yes 119
LinkAgg1 0x001279FE26C1 901 UP lan901 snap901 20 ETHER Yes 119
LinkAgg2 0x001279FE4790 902 UP lan902 snap902 21 ETHER Yes 119
LinkAgg3 0x000000000000 903 DOWN lan903 snap903 22 ETHER Yes 119
LinkAgg4 0x000000000000 904 DOWN lan904 snap904 23 ETHER Yes 119
A. Clay Stephenson
Acclaimed Contributor

Re: speed and duplexing in APA

post the output of lanscan, it looks as though you are using the wrong interface names.
If it ain't broke, I can fix that.
IT_2007
Honored Contributor

Re: speed and duplexing in APA

use lan900 name in the configuration which will solve your problem.
Daniel Sanabria
Advisor

Re: speed and duplexing in APA

lan901 and lan902 are the ones that I'm interested to have in 100FD mode. I'm obtaining the same results using lanxxx or just xxx as the name.

of the 16 ports I have (4 quadNICs) ports 12 and 16 corresponds to lan902 and 11 & 15 corresponds to lan901
Steven E. Protter
Exalted Contributor

Re: speed and duplexing in APA

Shalom,

/etc/rc.config.d/hpbtlan (maybe conf on the end of the name)

This will let you force speed. The switch port itself must be configured for 100 FD manual.

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
Daniel Sanabria
Advisor

Re: speed and duplexing in APA

Yes Steve,

hpbtlanconf is the file I've been playing with as suggested by Mel but without any luck, not even discarding the names and using the station address (this way I get no errors restarting the driver but I'm still getting AUOTNEG in the lanadmin output)

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

/sbin/init.d/hpbtlan start
> lanadmin -x 12
Current Config = 100 Half-Duplex AUTONEG

> lanadmin -x 11
Current Config = 100 Full-Duplex AUTONEG

> lanadmin -x 4
Current Config = 100 Full-Duplex AUTONEG



Mel Burslan
Honored Contributor

Re: speed and duplexing in APA

lan90x are aggregate lan names. And I do not think their lan speeds can not be set to a value. This method on my first post is related to physical interfaces.

If you are in active/passive mode of auto port aggregation, setting both ports to 100FD, will do what you want. If you are using active/active setting, you will have the throughput of 200Mbit/sec.
________________________________
UNIX because I majored in cryptology...
IT_2007
Honored Contributor

Re: speed and duplexing in APA

define them in hpbtlanconf file with names like lan11, lan12 etc..and 100FD.
Xianjie Zhang
Trusted Contributor
Solution

Re: speed and duplexing in APA

The interface names in hpbtlanconf must be the names of the physical interfaces, lan12 and lan16 is correct. You can not put lan900 and lan901.
However, the "/sbin/init.d/hpbtlan" seems to have a bug when the port is in an APA link aggegations, it fails to recognize a port in a link aggregate.
As a workaround, you can change the configuration file of "hpbtlanconf" as you did,
==
HP_BTLAN_INTERFACE_NAME[1]=lan16
HP_BTLAN_SPEED[1]=100FD
==
so that at the next reboot you will get the port set to 100FD. (This will work because APA is configured after btlan driver.)

In the mean time, you just use "lanadmin" to set the current value of those ports:
#lanadmin -X 100FD 16

Hope this helps.

Xianjie Zhang
Trusted Contributor

Re: speed and duplexing in APA

Just another note:
It is not recommended to change the properties of a port when it is already in an APA link aggregates (because APA requires ports to have the same properties.)

Another way to change the speed is:

#/sbin/init.d/hpapa stop
#/sbin/init.d/hpbtlan start
#/sbin/init.d/hpapa start
Daniel Sanabria
Advisor

Re: speed and duplexing in APA

Thanks Zhang,

Stopping apa before applying the changes did the trick.
Daniel Sanabria
Advisor

Re: speed and duplexing in APA

Stopping apa before applying the changes is the key.