HP Auto Port Aggregation Administrator's Guide HP-UX 11i v3 (766140-001, March 2014)

C Configuring HP APA by editing files
This appendix provides information about editing the different configuration files to configure the
following:
Link aggregates
Failover groups
Editing configuration files for link aggregates
This section shows how to configure the three modes associated with port aggregation.
For release-specific information, see the release notes on your system in the /opt/networkdocs
directory or on the web at:
HP Support Centre.
IMPORTANT: The following information applies to each of the hpapa start and hpapa stop
sequences listed on the following pages.
If you are configuring more than one of the four port-configuration modes described here, minimize
the number of times you must enter hpapa stop (which can interrupt traffic on existing link
aggregates) by editing all configuration files first. You then only need to enter one series of hplm
stop (optional), hpapa stop, hpapa start, and hplm start (optional) commands to activate
the link aggregates and failover groups.
NOTE: HP APA also requires that you configure the trunking mode of your switches to match the
mode being used on the server: Cisco Fast EtherChannel (FEC), IEEE 802.3ad, or Link Aggregation
Control Protocol (LACP) mode.
Editing files for FEC_AUTO or LACP_AUTO mode
1. Ensure that the switch ports and the HP LAN card ports are set to the same APA (or trunking)
mode ( AUTO), speed, and duplex mode.
2. Use the nwmgr command, if you need to verify that all HP LAN card ports intended for
aggregation are connected to the LAN.
3. Remember that APA instance numbers begin with 900.
LACP_AUTO port configuration mode
To configure load balancing and the port key for link aggregate 902 with MAC–based load
balancing, do the following:
1. Edit the /etc/rc.config.d/hp_apaconf file and add the following entries:
HP_APA_INTERFACE_NAME[0]=lan902
HP_APA_LOAD_BALANCE_MODE[0]=LB_PORT
HP_APA_KEY[0]=902
2. Edit the /etc/rc.config.d/hp_apaportconf file and add the following entries to put
lan1 and lan2 into link aggregate 902 and set the APA port key and the configuration
mode:
HP_APAPORT_INTERFACE_NAME[0]=lan1
HP_APAPORT_KEY[0]=902
HP_APAPORT_CONFIG_MODE[0]=LACP_AUTO
HP_APAPORT_INTERFACE_NAME[1]=lan2
HP_APAPORT_KEY[1]=902
HP_APAPORT_CONFIG_MODE[1]=LACP_AUTO
NOTE: Set the LACP_AUTO key in the previous examples to be the same as that of the link
aggregate to which it belongs. Ports going to different link aggregates should have different
keys.
Editing configuration files for link aggregates 85