Sei sulla pagina 1di 3

The example below assumes you have two 4-port cards you want to do port/ether channeling with.

Each card will be one channel with 4 ports. The first card holds lan0, lan1, lan2, and lan3, while the second holds lan6, lan7, lan8, and lan9. The first card is channel 1, and the second card is channel 2. Channel 2 is the active-standby channel that will take over in if channel 1 goes down. Before you are ready to configure on the server, you need to verify that all cables of each channel are on separate switches that are connected to the same VLAN. Cables from channel 1 go to switch A, and cables from channel 2 go to switch B. You have to first edit the following files: /etc/rc.config.d/hp_apaportconf and /etc/rc.config.d/hp_apaconf: hp_apaconf: #The HP_APA_INIT_ARGS are reserved by HP. HP_APA_START_LA_PPA=900 HP_APA_DEFAULT_PORT_MODE=MANUAL HP_APA_INIT_ARGS="HP_APA_LOAD_BALANCE_MODE HP_APA_GROUP_CAPABILITY HP_APA_HOT_STANDBY HP_APA_MANUAL_LA HP_APA_INIT HP_APA_KEY" HP_APA_INTERFACE_NAME[0]=lan900 HP_APA_LOAD_BALANCE_MODE[0]=LB_PORT HP_APA_MANUAL_LA[0]="0,1,2,3" HP_APA_INTERFACE_NAME[1]=lan901 HP_APA_LOAD_BALANCE_MODE[1]=LB_PORT HP_APA_MANUAL_LA[1]="6,7,8,9" # End of hp_apaconf configuration file hp_apaportconf (Take note of the sequence of the interfaces): HP_APAPORT_INTERFACE_NAME[0]=lan0 HP_APAPORT_CONFIG_MODE[0]=MANUAL HP_APAPORT_INTERFACE_NAME[1]=lan6 HP_APAPORT_CONFIG_MODE[1]=MANUAL HP_APAPORT_INTERFACE_NAME[2]=lan1 HP_APAPORT_CONFIG_MODE[2]=MANUAL HP_APAPORT_INTERFACE_NAME[3]=lan7 HP_APAPORT_CONFIG_MODE[3]=MANUAL HP_APAPORT_INTERFACE_NAME[4]=lan2 HP_APAPORT_CONFIG_MODE[4]=MANUAL HP_APAPORT_INTERFACE_NAME[5]=lan8 HP_APAPORT_CONFIG_MODE[5]=MANUAL HP_APAPORT_INTERFACE_NAME[6]=lan3 HP_APAPORT_CONFIG_MODE[6]=MANUAL HP_APAPORT_INTERFACE_NAME[7]=lan9 HP_APAPORT_CONFIG_MODE[7]=MANUAL They are NOT user changable.

*** If your server is part of a cluster configuration, the cluster configuration file(s) will need to be updated with the correct interface. *** Then: #> /sbin/init.d/hpapa start ./hpapa started. Please be patient. This may take about 40 seconds. HP_APA_DEFAULT_PORT_MODE = MANUAL /usr/sbin/hp_apa_util -S 0 MANUAL /usr/sbin/hp_apa_util -S 6 MANUAL /usr/sbin/hp_apa_util -S 1 MANUAL /usr/sbin/hp_apa_util -S 7 MANUAL /usr/sbin/hp_apa_util -S 2 MANUAL /usr/sbin/hp_apa_util -S 8 MANUAL /usr/sbin/hp_apa_util -S 3 MANUAL /usr/sbin/hp_apa_util -S 9 MANUAL lan900 /usr/sbin/lanadmin -X -l LB_PORT 900 New Load Balancing = 5 /usr/sbin/lanadmin -X -a 0 1 2 3 900 Added ports:0 1 2 3 to lan900 lan901 /usr/sbin/lanadmin -X -l LB_PORT 901 New Load Balancing = 5 /usr/sbin/lanadmin -X -a 6 7 8 9 901 Added ports:6 7 8 9 to lan901 ./hpapa Completed successfully. Then: #> cd /etc/lanmon #> lanqueryconf -s ASCII output is in file /etc/lanmon/lanconfig.ascii If you get the following error: WARNING: None of the ports in subnet ( 900 901 ) have an IP address assigned No Fail-Over Groups found. ASCII file not created Network interfaces may be down. Make sure that /sbin/init.d/net is started: #> /sbin/init.d/net start If lanqueryconf s doesnt return any errors, go ahead and start your APA to test for port channeling: #> /sbin/init.d/hplm start ./hplm started. Reading ASCII file /etc/lanmon/lanconfig.ascii Creating Fail-Over Group lan902 Updated binary file /etc/lanmon/lanconfig ./hplm Completed successfully.

Now verify that your interface is up: #> netstat win


Name lan5:1 lo0 lan902 lan5:2* lan5 Mtu 1500 4136 1500 1500 1500 Network 135.163.0.0 127.0.0.0 135.163.2.0 none 135.163.0.0 Address 135.163.6.12 127.0.0.1 135.163.2.21 none 135.163.6.19 Ipkts Ierrs 70324 0 36191928 0 1529499 0 0 0 2800868944 0 Opkts 10 36191928 1287937 0 3818484306 Oerrs 0 0 0 0 0 Coll 0 0 0 0 0

You should see lan902 up. Lan900 is channel 1 and lan901 is channel 2. Lan902 is the name of the two-channel group, and will be the interface shown to be up. If you want to see the individual interfaces that make up the channels, and want to check their status, you will need to run glance: #> glance l Below, you can see that all ports for channel 1 are up, and have traffic, while channel 2 is inactive:
Network Packet Packet K-Byte K-Byte Idx Interface Type Rate In Rate Out Rate In Rate Out -------------------------------------------------------------------------------1 lan0 Lan 9.2/ 9.9 0.0/ 0.1 0.7/ 0.7 0.0/ 0.0 2 lan1 Lan 9.2/ 9.9 0.0/ 0.2 0.7/ 0.7 0.0/ 0.0 3 lan2 Lan 9.2/ 10.2 0.0/ 0.5 0.7/ 0.8 0.0/ 0.0 4 lan3 Lan 9.2/ 10.1 0.0/ 0.2 0.7/ 0.7 0.0/ 0.0 5 lan12 Lan 9.6/ 9.9 2.7/ 2.3 0.7/ 0.7 0.1/ 0.1 6 lan13 Lan 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 7 lan14 Lan 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 8 lan15 Lan 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 9 lan6 Lan 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 10 lan7 Lan 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 11 lan8 Lan 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 12 lan9 Lan 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0

Below, channel 1 was taken down on the network-side, and you can see that all ports for channel 2 are up, with traffic, while channel 1 is inactive:
Network Packet Packet K-Byte K-Byte Idx Interface Type Rate In Rate Out Rate In Rate Out -------------------------------------------------------------------------------1 lan0 Lan 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 2 lan1 Lan 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 3 lan2 Lan 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 4 lan3 Lan 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 5 lan12 Lan 8.0/ 10.1 2.0/ 2.4 0.6/ 0.7 0.2/ 0.2 6 lan13 Lan 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 7 lan14 Lan 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 8 lan15 Lan 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 0.0/ 0.0 9 lan6 Lan 2.0/ 3.9 0.0/ 0.1 0.2/ 0.2 0.0/ 0.0 10 lan7 Lan 4.0/ 4.3 0.0/ 0.0 0.4/ 0.3 0.0/ 0.0 11 lan8 Lan 0.0/ 0.4 0.0/ 0.4 0.0/ 0.0 0.0/ 0.0 12 lan9 Lan 1.0/ 0.9 0.0/ 0.4 0.0/ 0.0 0.0/ 0.0

Potrebbero piacerti anche