How do you configure LACP on Comware?
Link Aggregration Control Protocol (LACP) is used to combine multiple ethernet ports into a bundle. This bundle shows up as one port to spanning tree protocol (STP) allowing multiple connections to occur between switches without blocking. This protocol is also used to connect multiple server links to a switch to increase over all bandwidth between the devices.
Comware devices use the terms bridge and link aggregation to configure the feature. Procurve uses trunk, trk. Cisco uses ether and port channel.
The example above has two HP 5800’s connected over their 10G ports 27 and 28 with an HP 7500 Chassis acting as the root bridge for Common Instance Spanning Tree.
[5800A]display lldp neighbor-information list System Name Local Interface Chassis ID Port ID 7500 GE1/0/1 3822-d69c-fbd0 GigabitEthernet2/0/25 5800B XGE1/0/27 3822-d6e5-9a1f Ten-GigabitEthernet1/0/27 5800B XGE1/0/28 3822-d6e5-9a1f Ten-GigabitEthernet1/0/28
[5800B]display lldp neighbor-information list System Name Local Interface Chassis ID Port ID 7500 GE1/0/1 3822-d69c-fbd0 GigabitEthernet2/0/26 5800A XGE1/0/27 3822-d6e5-85df Ten-GigabitEthernet1/0/27 5800A XGE1/0/28 3822-d6e5-85df Ten-GigabitEthernet1/0/28 [7500]dis lldp nei list System Name Local Interface Chassis ID Port ID 5800A GE2/0/25 3822-d6e5-85df GigabitEthernet1/0/1 5800B GE2/0/26 3822-d6e5-9a1f GigabitEthernet1/0/1
On HP switch 5800B, both links are in STP Alternate mode (blocking).
[5800B]display stp brief
MSTID Port Role STP State Protection
0 GigabitEthernet1/0/1 ROOT FORWARDING NONE
0 Ten-GigabitEthernet1/0/27 ALTE DISCARDING NONE
0 Ten-GigabitEthernet1/0/28 ALTE DISCARDING NONE
[5800A]dis stp brief MSTID Port Role STP State Protection 0 GigabitEthernet1/0/1 ROOT FORWARDING NONE 0 Ten-GigabitEthernet1/0/27 DESI FORWARDING NONE 0 Ten-GigabitEthernet1/0/28 DESI FORWARDING NONE [7500]dis stp brief MSTID Port Role STP State Protection 0 GigabitEthernet2/0/25 DESI FORWARDING NONE 0 GigabitEthernet2/0/26 DESI FORWARDING NONE 0 GigabitEthernet2/0/27 DESI FORWARDING NONE 0 GigabitEthernet2/0/28 DESI FORWARDING NONE
<5800A>dis stp -------[CIST Global Info][Mode MSTP]------- CIST Bridge :32768.3822-d6e5-85df Bridge Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 CIST Root/ERPC :32768.3822-d69c-fbd0 / 20 CIST RegRoot/IRPC :32768.3822-d6e5-85df / 0 CIST RootPortId :128.1 BPDU-Protection :disabled Bridge Config- Digest-Snooping :disabled TC or TCN received :40 Time since last TC :0 days 0h:4m:9s
[5800B]dis stp -------[CIST Global Info][Mode MSTP]------- CIST Bridge :32768.3822-d6e5-9a1f Bridge Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 CIST Root/ERPC :32768.3822-d69c-fbd0 / 20 CIST RegRoot/IRPC :32768.3822-d6e5-9a1f / 0 CIST RootPortId :128.1 BPDU-Protection :disabled Bridge Config- Digest-Snooping :disabled TC or TCN received :26 Time since last TC :0 days 0h:0m:7s [7500]dis stp -------[CIST Global Info][Mode MSTP]------- CIST Bridge :32768.3822-d69c-fbd0 Bridge Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 CIST Root/ERPC :32768.3822-d69c-fbd0 / 0 CIST RegRoot/IRPC :32768.3822-d69c-fbd0 / 0 CIST RootPortId :0.0 BPDU-Protection :disabled Bridge Config- Digest-Snooping :disabled TC or TCN received :15 Time since last TC :0 days 0h:9m:18s
Configuring the 5800B port 10G 27 and 28 for LACP. The “link-aggregration mode dynamic” causes the bridge-aggregration to use LACP, otherwise the default is “static.” Further the load-sharing method is Layer 3 based.
[5800B]interface Bridge-Aggregation 1 [5800B-Bridge-Aggregation1]port link-type trunk [5800B-Bridge-Aggregation1]port trunk permit vlan all Please wait........................................... Done. [5800B-Bridge-Aggregation1]link-aggregation mode dynamic [5800B-Bridge-Aggregation1]link-aggregation load-sharing mode destination-ip source-ip [5800-Bridge-Aggregation1]interface Ten-GigabitEthernet1/0/28 [5800B-Ten-GigabitEthernet1/0/28]port link-aggregation group 1 [5800B-Ten-GigabitEthernet1/0/28]display this # interface Ten-GigabitEthernet1/0/28 port link-mode bridge port link-aggregation group 1 # return [5800B-Ten-GigabitEthernet1/0/28]quit [5800B]interface Ten-GigabitEthernet 1/0/27 [5800B-Ten-GigabitEthernet1/0/27]dis this # interface Ten-GigabitEthernet1/0/27 port link-mode bridge port link-aggregation group 1 # return
Even after configuring the 10G ports, the trunking config is not applied. You have to configure all changes after adding the 10G ports to the bridge-agg. Further, the other side, 5800A, is not configured so things are out of sync.
[5800B]display link-aggregation summary
Aggregation Interface Type:
BAGG -- Bridge-Aggregation, RAGG -- Route-Aggregation
Aggregation Mode: S -- Static, D -- Dynamic
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Actor System ID: 0x8000, 3822-d6e5-9a1f
AGG AGG Partner ID Select Unselect Share
Interface Mode Ports Ports Type
-------------------------------------------------------------------------------
BAGG1 D 0x8000, 0000-0000-0000 0 2 Shar
[5800B]interface Bridge-Aggregation 1
[5800B-Bridge-Aggregation1]port link-type trunk
[5800B-Bridge-Aggregation1]port trunk permit vlan all
Please wait........................................... Done.
Configuring Ten-GigabitEthernet1/0/27........................................... Done.
Configuring Ten-GigabitEthernet1/0/28........................................... Done.
[5800B-Bridge-Aggregation1]quit
The configuration of the bridge-agg is applied to its member ports and the bridge-agg is functioning with only one link operating because the other side is not configured.
[5800B]display link-aggregation summary
Aggregation Interface Type: BAGG -- Bridge-Aggregation, RAGG -- Route-Aggregation Aggregation Mode: S -- Static, D -- Dynamic Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Actor System ID: 0x8000, 3822-d6e5-9a1f
AGG AGG Partner ID Select Unselect Share Interface Mode Ports Ports Type
-------------------------------------------------------------------------------
BAGG1 D 0x8000, 0000-0000-000 1 1 0 Shar
Configuring the 5800A after 5800B was completed
[5800A]interface Bridge-Aggregation1 [5800A-Bridge-Aggregation1] link-aggregation mode dynamic [5800A-Bridge-Aggregation1]dis this # interface Bridge-Aggregation1 link-aggregation mode dynamic # [5800A-Bridge-Aggregation1]quit [5800A]interface Ten-GigabitEthernet 1/0/27 [5800A-Ten-GigabitEthernet1/0/27]port link-aggregation group [5800A-Ten-GigabitEthernet1/0/27]interface Ten-GigabitEthernet 1/0/28 [5800A-Ten-GigabitEthernet1/0/28]port link-aggregation group 1 [5800A-Ten-GigabitEthernet1/0/28]quit
The 5800A bridge aggregate 1 is now doing LACP and is sharing with 5800B. But, the layer 2 config is for access not trunk.
[5800A]display link-aggregation summary
Aggregation Interface Type
BAGG -- Bridge-Aggregation, RAGG -- Route-Aggregation
Aggregation Mode: S -- Static, D -- Dynamic
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Actor System ID: 0x8000, 3822-d6e5-85df
AGG AGG Partner ID Select Unselect Share
Interface Mode Ports Ports Type
-------------------------------------------------------------------------------
BAGG1 D 0x8000, 3822-d6e5-9a1f 2 0 Shar
[5800A]interface Bridge-Aggregation 1
[5800A-Bridge-Aggregation1]port link-type trunk
[5800A-Bridge-Aggregation1]dis this
#
interface Bridge-Aggregation1
port link-type trunk
port trunk permit vlan 1
link-aggregation mode dynamic
#
return
[5800A-Bridge-Aggregation1]port trunk permit vlan all
Please wait........................................... Done.
Configuring Ten-GigabitEthernet1/0/27..........................................
Configuring Ten-GigabitEthernet1/0/28..........................................
[5800A-Bridge-Aggregation1]quit
Now it is configured to permit all vlans down the interfaces.
[5800A]display link-aggregation summary Aggregation Interface Type: BAGG -- Bridge-Aggregation, RAGG -- Route-Aggregation Aggregation Mode: S -- Static, D -- Dynamic Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing Actor System ID: 0x8000, 3822-d6e5-85df AGG AGG Partner ID Select Unselect Share Interface Mode Ports Ports Type ------------------------------------------------------------------------------- BAGG1 D 0x8000, 3822-d6e5-9a1f 2 0 Shar [5800A]display link-aggregation verbose Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing Port Status: S -- Selected, U -- Unselected Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, D -- Synchronization, E -- Collecting, F -- Distributing, G -- Defaulted, H -- Expired Aggregation Interface: Bridge-Aggregation1 Aggregation Mode: Dynamic Loadsharing Type: Shar System ID: 0x8000, 3822-d6e5-85df Local: Port Status Priority Oper-Key Flag -------------------------------------------------------------------------------- XGE1/0/27 S 32768 1 {ACDEF} XGE1/0/28 S 32768 1 {ACDEF} Remote: Actor Partner Priority Oper-Key SystemID Flag -------------------------------------------------------------------------------- XGE1/0/27 29 32768 1 0x8000, 3822-d6e5-9a1f {ACDEF} XGE1/0/28 30 32768 1 0x8000, 3822-d6e5-9a1f {ACDEF} [5800A]display link-aggregation load-sharing mode Link-Aggregation Load-Sharing Mode: Layer 2 traffic: packet type-based sharing Layer 3 traffic: packet type-based sharing [5800A]display link-aggregation load-sharing mode interface Bridge-Aggregation 1 Bridge-Aggregation1 Load-Sharing Mode: Layer 2 traffic: packet type-based sharing Layer 3 traffic: packet type-based sharing
Finally making the load-balancing equal to the 5800B.
[5800A]int Bridge-Aggregation 1
[5800A-Bridge-Aggregation1]link-aggregation load mode destination-ip source-ip
[5800A-Bridge-Aggregation1]quit
[5800A]dis link-a lo m in b 1
Bridge-Aggregation1 Load-Sharing Mode:
destination-ip address, source-ip address
So let’s look at STP now
<5800B>dis stp brief MSTID Port Role STP State Protection 0 Bridge-Aggregation1 ALTE DISCARDING NONE 0 GigabitEthernet1/0/1 ROOT FORWARDING NONE [7500]dis stp brief MSTID Port Role STP State Protection 0 GigabitEthernet2/0/25 DESI FORWARDING NONE 0 GigabitEthernet2/0/26 DESI FORWARDING NONE
<5800A>dis stp brief MSTID Port Role STP State Protection 0 Bridge-Aggregation1 DESI FORWARDING NONE 0 GigabitEthernet1/0/1 ROOT FORWARDING NONE
And the final configuration commands on the Bridge-Agg 1 and 10G interconnects 1/0/27 and 1/0/28… I do love “display this.”
[5800A-Bridge-Aggregation1]dis this # interface Bridge-Aggregation1 port link-type trunk port trunk permit vlan all link-aggregation mode dynamic link-aggregation load-sharing mode destination-ip source-ip # return [5800A-Ten-GigabitEthernet1/0/28]display this # interface Ten-GigabitEthernet1/0/28 port link-mode bridge port link-type trunk port trunk permit vlan all port link-aggregation group 1 # return [5800A-Ten-GigabitEthernet1/0/28]quit [5800A]interface Ten-GigabitEthernet 1/0/27 [5800A-Ten-GigabitEthernet1/0/27]dis this # interface Ten-GigabitEthernet1/0/27 port link-mode bridge port link-type trunk port trunk permit vlan all port link-aggregation group 1 # return [5800B-Bridge-Aggregation1]dis this # interface Bridge-Aggregation1 port link-type trunk port trunk permit vlan all link-aggregation mode dynamic link-aggregation load-sharing mode destination-ip source-ip # return [5800B-Ten-GigabitEthernet1/0/28]display this # interface Ten-GigabitEthernet1/0/28 port link-mode bridge port link-type trunk port trunk permit vlan all port link-aggregation group 1 # return [5800B-Ten-GigabitEthernet1/0/28]quit [5800B]interface Ten-GigabitEthernet 1/0/27 [5800B-Ten-GigabitEthernet1/0/27]dis this # interface Ten-GigabitEthernet1/0/27 port link-mode bridge port link-type trunk port trunk permit vlan all port link-aggregation group 1 # return </pre>
Here is a video from HPSwitching on Youtube.
Comments
No comment yet.