1 General
APA is a tool to configure two or more network
interfaces into one network interface.
This can be used for loadbalacing and redundancy. On the nlscux62 there
are two APA interfaces. After examination you will notice that only one
interface is redundant. The goal is to make both interfaces redundant.
2 Current situation
The two APA interfaces are lan900 and lan901. As you
can be seen lan900 consist of one network interface, lan0. And lan901 consist
of two network interfaces, lan1 and lan5.
Netsat -in
Name Mtu
Network Address Ipkts Ierrs Opkts Oerrs Coll
|
lan3 1500 192.168.144.0 192.168.144.177 315349190 0 662417025 0 0
|
lo0 4136 127.0.0.0 127.0.0.1 284832120 0 284837547 0 0
|
lan901 1500 130.139.1.128 130.139.1.168 162163570 0 204307900 0 0
|
lan900 1500 130.139.2.0 130.139.2.149 556975676 0 450754084 0 0
|
lanscan
Hardware Station
Crd Hdw Net-Interface NM
MAC HP-DLPI DLPI
|
Path Address In# State NamePPA ID
Type Support Mjr#
|
0/2/1/0/6/0 0x001185EB7076 2
UP lan2 snap2 3
ETHER Yes 119
|
0/4/2/0/6/0 0x001185EB508A 3
UP lan3 snap3 4
ETHER Yes 119
|
0/5/1/0 0x00306E5DCD50
4 UP lan4 snap4 5
ETHER Yes 119
|
LinkAgg0 0x00306E5DD6CA 900
UP lan900 snap900 10 ETHER
Yes 119
|
LinkAgg1 0x00306E5DD6CB 901
UP lan901 snap901 11 ETHER
Yes 119
|
LinkAgg2 0x000000000000 902 DOWN lan902 snap902 12 ETHER
Yes 119
|
LinkAgg3 0x000000000000 903 DOWN lan903 snap903 13 ETHER
Yes 119
|
LinkAgg4 0x000000000000 904 DOWN lan904 snap904 14 ETHER
Yes 119
|
Lanscan -q
2
|
3
|
4
|
900 0
|
901 1 5
|
902
|
903
|
904
|
HP_APA_INTERFACE_NAME[0]=lan900
HP_APA_LOAD_BALANCE_MODE[0]=
HP_APA_HOT_STANDBY[0]=on
HP_APA_GROUP_CAPABILITY[0]=10
HP_APA_KEY[0]=
HP_APA_MANUAL_LA[0]=0
HP_APA_INTERFACE_NAME[1]=lan901
HP_APA_LOAD_BALANCE_MODE[1]=
HP_APA_HOT_STANDBY[1]=on
HP_APA_GROUP_CAPABILITY[1]=5
HP_APA_KEY[1]=
HP_APA_MANUAL_LA[1]=1,5
3 Finding the missing interface
Before we can configure lan900 we need to know which
network interface is missing(see appendix).
·
First check the unused
interfaces on the server for their status
·
Check the speed. The speed
needs to be the same as lan900
·
Determine if the found
interfaces are connected to the same network segment
If correct only one interface will be found which has
the correct status, speed and is located on the same network segment. This
interface will be added to the configuration of lan900.
4 Configuring lan900
There are three steps that need to be executed (see
appendix).
·
Edit the APA configurations
file to add the found network interface.
·
Activate the new
configuration.
·
Check the network
configuration.
5 Appendix
Use lanadmin to check the status and the speed of the
unused interfaces
·
[nlscux62:/etc/rc.config.d]#
lanadmin -x 2
The
link is down. The speed and other link state information
are
undefined. The configuration specified for this card is:
Speed
= 1000 or 100 or 10 Mbps.
Autonegotiation = On.
·
[nlscux62:/etc/rc.config.d]#
lanadmin -x 4
Speed
= 1000 Full-Duplex.
Autonegotiation = On.
Use linkloop to check the network segment.
·
[nlscux62:/etc/rc.config.d]#
linkloop -i 900 0x00306E5DCD50
Link
connectivity to LAN station: 0x00306E5DCD50
--OK
Edit the /etc/rc.config.d/hpapa_conf file to add
interface number 4 to the configuration
HP_APA_INTERFACE_NAME[0]=lan900
HP_APA_LOAD_BALANCE_MODE[0]=
HP_APA_HOT_STANDBY[0]=on
HP_APA_GROUP_CAPABILITY[0]=10
HP_APA_KEY[0]=
HP_APA_MANUAL_LA[0]=0,4
Activate
the new configuration
·
login to the console and
execute:
/sbin/init.d/hpapa
stop
/sbin/init.d/hpapa
start
Check the new configuration:
·
lanscan –q
2
3
4
900 0 4
901 1 5
902
903
904
·
netstat –in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
|
lan3 1500 192.168.144.0 192.168.144.177 315361681 0 662417025 0 0
|
lo0 4136 127.0.0.0 127.0.0.1 285371161 0 285376594 0 0
|
lan901 1500 130.139.1.128 130.139.1.168 162391114 0 204459525 0 0
|
lan900 1500 130.139.2.0 130.139.2.149 557946419 0 451547622 0 0
|
·
ping 130.139.2.0
No comments:
Post a Comment