From Wiki-UX.info

Wiki-UX / Auto Port Aggregation / How to configure a Lan Monitor Group using Auto Port Aggregation
Jump to: navigation, search

How to configure a Lan Monitor Group using Auto Port Aggregation

Abstract

This article explains how to configure a Lan Monitor Group (Failover) using Auto Port Aggregation Lan on a HP-UX 11i Operating Environment.

NOTE: 100BT, Gigabit, or 10 Gigabit Ethernet (10GbE) devices can be usedin a failover group. However, all the devices in the failover group must be of one type: 100BT, Gigabit, or 10GbE (Failover Group).


Contents


Procedure

1. Configure the applicable network card interface control file, for example /etc/rc.config.d/hpbtlanconf for all the network adapters that will be part of the LAN Monitor failover group.

# ioscan -fnkC lan
Class     I  H/W Path  Driver      S/W State H/W Type  Description
===================================================================
lan       0  8/16/6    btlan        CLAIMED   INTERFACE Built-in LAN
                      /dev/ether1     /dev/lan1
lan       0  8/16/8    btlan        CLAIMED   INTERFACE Built-in LAN
                      /dev/ether3     /dev/lan3
# cat /etc/rc.config.d/hpbtlanconf
...
HP_BTLAN_INTERFACE_NAME[0]=lan1
HP_BTLAN_STATION_ADDRESS[0]=
HP_BTLAN_SPEED[0]=100FD 
...
HP_BTLAN_INTERFACE_NAME[1]=lan3
HP_BTLAN_STATION_ADDRESS[1]=
HP_BTLAN_SPEED[1]=100FD
...

2. Configure /etc/rc.config.d/netconf file. Keep note that no network IP configuration entries are needed for failover lan3 in the /etc/rc.config.d/netconf network interface.

INTERFACE_NAME[1]=lan1
IP_ADDRESS[1]=192.1.1.41
SUBNET_MASK[1]=255.255.255.0
BROADCAST_ADDRESS[1]="" 
INTERFACE_STATE[1]="" 
DHCP_ENABLE[1]=0
NOTE: Assign the IP address only the Primary Network Card of the Lan Monitor failover group.


NOTE: Assign the gateway and routing entries if needed.


3. Configure /etc/rc.config.d/hp_apaportconf file for each interface.

HP_APAPORT_INTERFACE_NAME[0]=lan1
HP_APAPORT_CONFIG_MODE[0]=LAN_MONITOR 
 
HP_APAPORT_INTERFACE_NAME[1]=lan3
HP_APAPORT_CONFIG_MODE[1]=LAN_MONITOR

4. No change is necessary in the /etc/rc.config.d/hp_apaportconf file. There is no trunking configuration required for the switch.

5. Use the /sbin/init.d/hpapa script in order to initialize the Autoport Aggregation software in LAN Monitor mode for the relevant network cards.

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

6. Assign the IP to the primary interface if is not already configure. Use the ifconfig command or the /etc/init.d/net rc start-up script.

# ifconfig lan1 192.1.1.41 netmask 255.255.255.0 up   

Or

# /sbin/init.d/net start

7. Create the /etc/lanmon/lanconfig.ascii file.

# lanqueryconf -s

This command will create the /etc/lanmon/lanconfig.ascii file. This is an ASCII text configuration file that may need to be edited to remove extraneous failover groups. In this example, the file was created properly without user intervention:

NODE_NAME teststation 
POLLING_INTERVAL 10000000 
DEAD_COUNT 3 
FAILOVER_GROUP lan900 
STATIONARY_IP 192.1.1.41 
PRIMARY lan1 5 
STANDBY lan3 3

Observe the key configuration parameters:

  • NODE_NAME: teststation
  • POLLING_INTERVAL: number of microseconds between polling messages. Default is 10 seconds.
  • DEAD_COUNT: number of polling packets missed before failover. Default is 3).
  • FAILOVER_GROUP: lan900. Designated by lanqueryconf.
  • STATIONARY_IP : configured in netconf. Is the primary network IP address with the standby network cardcapable of being linklooped from the primary because there is MAC-layer connectivity).
  • The number 5 and the 3 next to the lan cards are Priority Labels. The highest number makes reference to the port that will govern the group.

8. Check the /etc/lanmon/lanconfig.ascii file and if no errors come up then implement the configuration

# lancheckconf
Reading ASCII file /etc/lanmon/lanconfig.ascii
Verification of input file /etc/lanmon/lanconfig.ascii is complete.
 
# lanapplyconf
Reading ASCII file /etc/lanmon/lanconfig.ascii
Creating Fail-Over Group lan900
Updated binary file /etc/lanmon/lanconfig

Check that the APA aggregate formed properly.

# lanscan -q 
2 
3 
0 
900 1 3 
901 
902 
903 
904

You can see from the output of the lanscan -q command that the prior configuration formed the (non-load-balancing) link aggregate of lan900, conformed by the primary network card lan1 (1) and the standby network card lan3 (3).

9. You are advise to reboot to verify that the APA activates properly during system boot.

Reference

Authors

This page was last modified on 29 July 2010, at 03:35. This page has been accessed 6,564 times.