Operating System - HP-UX
1833578 Members
3494 Online
110061 Solutions
New Discussion

Problems with LACP in APA

 
David Islas González_1
Frequent Advisor

Problems with LACP in APA

Hi everybody, I'm having troubles with my APA configuration.

I've already configured LACP support on my switches.

When I configure LACP via SAM, as the guide says:
1. I configure all the ports on the link aggregate with the same key (2)
2. I configure my link aggregate with the same key as the ports on that link.

When I try to add ports to my link aggregate I have the next error with all my ports: "The port you are trying to add to this Link Aggreate is currently configured as LACP. When you configure a port in LACP mode, it is automatically added to a Link Aggregate. You cannot use this screen to add FEC_AUTO mode port into a linkagg.

So I cannot see anyport into the "Ports in this Link Aggregate".

The next step is to click the OK button, so I have the next message:
"ifconfig: no such interface"

And I have no lan900 :(.

I tried to make this by editing files and got the next:

# /sbin/init.d/hplm stop
# /sbin/init.d/hpapa stop

# vi /etc/rc.config.d/hp_apaconf:

HP_APA_INTERFACE_NAME[0]=lan900
HP_APA_LOAD_BALANCE_MODE[0]=LB_MAC
HP_APA_KEY[0]=2

#vi /etc/rc.config.d/hp_apaportconf:

HP_APAPORT_INTERFACE_NAME[0]=lan0
HP_APAPORT_KEY[0]=2
HP_APAPORT_CONFIG_MODE[0]=LACP_AUTO

HP_APAPORT_INTERFACE_NAME[1]=lan1
HP_APAPORT_KEY[1]=2
HP_APAPORT_CONFIG_MODE[1]=LACP_AUTO

#vi /etc/rc.config.d/netconf
DEFAULT_INTERFACE_MODULES=""
ROUTE_GATEWAY[0]=10.1.1.220
ROUTE_COUNT[0]=1
ROUTE_DESTINATION[0]=default
INTERFACE_NAME[0]=lan900
IP_ADDRESS[0]=10.1.1.1
SUBNET_MASK[0]=255.255.255.0

When I activate the apa configuration I have no error messages
#/sbin/init.d/hpapa start

, but when I activate the net service I have the next message:

# /sbin/init.d/net start

ERROR: lan900 interface: ifconfig: no such interface
ERROR: Failed to add route entry because its interface is not yet initialized. May need to add this route entry with a route commad after the interface is up :add net default: gateway 10.1.1.220: Network is unreachable

and lan900 doesn't exist!!!

I have this version of APA:
# J4240AA B.11.23.05 Auto-Port Aggregation Software
# J4240AA.HP-APA-KRN B.11.23.05 HP Auto-Port Aggregation APA kernel products.
J4240AA.HP-APA-KRN.APA-KRN B.11.23.05 HP Auto-Port Aggregation APA kernel library
# J4240AA.HP-APA-LM B.11.23.05 HP Auto-Port Aggregation LM commands.
J4240AA.HP-APA-LM.APA-LM B.11.23.05 APA init files.
# J4240AA.HP-APA-SAM B.11.23.05 HP Auto-Port Aggregation APA SAM product.
J4240AA.HP-APA-SAM.SAM-APA B.11.23.05 SAM APA Configuration Tool
# J4240AA.HP-APA-FMT B.11.23.05 HP Auto-Port Aggregation APA formatter product.
J4240AA.HP-APA-FMT.APA-FORMAT B.11.23.05 APA formatter library
# J4240AA.HP-APA-RUN B.11.23.05 HP Auto-Port Aggregation APA command products.
J4240AA.HP-APA-RUN.APA-INIT B.11.23.05 APA init files.
J4240AA.HP-APA-RUN.APA-RUN B.11.23.05 HP Auto-Port Aggregation APA command libraries

I appreciate any suggestion
2 REPLIES 2
Ketan Kotak
Advisor

Re: Problems with LACP in APA

Hi David,

Editing config files and stop/start-ing APA looks like should work.

Check for following:

* After you start APA, i.e.
#/sbin/init.d/hpapa start
See if the lan900 is created as expected.
You can use command:
lanadmin -x -i 900

You can also check if ports are configured properly, by:
lanadmin -x -p 0 900
and
lanadmin -x -p 1 900

You can copy-paste output of these commands for reference here.

If you think ports are OK, then check if switch side they are configured properly. Check their trunk mode, trunk number etc.

If switch and ports are correctly configured, then after hpapa start, lan900 should appear.

Let us see what you see first...

Thanks and regards,
+ Ketan Kotak
David Islas González_1
Frequent Advisor

Re: Problems with LACP in APA

Thanks Ketan, with this commands I could see that the lan900 existed but the ports were disabled because the switch is not correctly configured.

I corrected the configuration on my switch and now is working.

Thanks!!