How do you configure MSTP on HP Comware via CLI?
We have three HP Comware switches in a triangle with each device being at default configuration after enabling Multi-Instance Spanning Tree (MSTP). We’ll be optimizing the network by adding load-balancing for MSTP and across 20 vlans and link aggregation.
A quick overview of the Layer 2 configuration of the network
[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
<5800A>dis stp brief MSTID Port Role STP State Protection 0 Bridge-Aggregation1 DESI FORWARDING NONE 0 GigabitEthernet1/0/1 ROOT FORWARDING NONE
<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 region-configuration Oper configuration Format selector :0 Region name :3822d6e585df Revision level :0 Configuration digest :0xac36177f50283cd4b83821d8ab26de62 Instance Vlans Mapped 0 1 to 4094
[5800B]dis stp region-configuration Oper configuration Format selector :0 Region name :3822d6e59a1f Revision level :0 Configuration digest :0xac36177f50283cd4b83821d8ab26de62 Instance Vlans Mapped 0 1 to 4094
[7500]dis stp region-configuration Oper configuration Format selector :0 Region name :3822d69cfbd0 Revision level :0 Configuration digest :0xac36177f50283cd4b83821d8ab26de62 Instance Vlans Mapped 0 1 to 4094
Configuring MSTP on the switches, not the configuration is the same to maintain consistency.
stp enable stp region-configuration region-name Comware revision-level 1 instance 1 vlan 1 to 10 instance 2 vlan 11 to 20 active region-configuration
Our goal is to have a single region configured with load balancing occuring between instances to allow all links to be utilized. 5800A will be handling the instances 0,1 and 5800B will be the root for instance 2. The link aggregation is used by both instances (colored green and yellow) but each 5800 is using the link to the 7500 for only it’s VLAN instances due to the blocking by MSTP per instance.
Configuring the 5800A
<5800A>sys System View: return to User View with Ctrl+Z. [5800A]stp reg [5800A]stp region-configuration [5800A-mst-region]region Comware [5800A-mst-region]rev [5800A-mst-region]revision-level 1 [5800A-mst-region]instance 1 vlan 1 to 10 [5800A-mst-region]instance 2 vlan 11 to 20 [5800A-mst-region]active region-configuration [5800A-mst-region]dis this # stp enable stp region-configuration region-name Comware revision-level 1 instance 1 vlan 1 to 10 instance 2 vlan 11 to 20 active region-configuration # return
[5800A-mst-region]dis stp region-configuration Oper configuration Format selector :0 Region name :Comware Revision level :1 Configuration digest :0x5f762d9a46311effb7a488a3267fca9f Instance Vlans Mapped 0 21 to 4094 1 1 to 10 2 11 to 20
Configure 5800A as the root for instances 0 and 1, with backup for instance 2.
[5800A]stp instance 1 root pri [5800A]stp instance 1 root primary [5800A]stp instance 0 root prim [5800A]stp instance 2 root sec
[5800A]dis stp instance 0 -------[CIST Global Info][Mode MSTP]------- CIST Bridge :0.3822-d6e5-85df Bridge Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 CIST Root/ERPC :0.3822-d6e5-85df / 0 CIST RegRoot/IRPC :0.3822-d6e5-85df / 0 CIST RootPortId :0.0 BPDU-Protection :disabled Bridge Config- Digest-Snooping :disabled CIST Root Type :PRIMARY root TC or TCN received :49 Time since last TC :0 days 0h:0m:24s
[5800A]dis stp instance 2 -------[MSTI 2 Global Info]------- MSTI Bridge ID :4096.3822-d6e5-85df MSTI RegRoot/IRPC :4096.3822-d6e5-85df / 0 MSTI RootPortId :0.0 MSTI Root Type :SECONDARY root Master Bridge :0.3822-d6e5-85df Cost to Master :0 TC received :0
Configure trunk links between the 5800A and 7500
[5800A]int g1/0/1 [5800A-GigabitEthernet1/0/1]port link-t t [5800A-GigabitEthernet1/0/1]port t p v all Please wait........................................... Done. [5800A-GigabitEthernet1/0/1]quit
[5800A]dis stp brief MSTID Port Role STP State Protection 0 Bridge-Aggregation1 DESI FORWARDING NONE 0 GigabitEthernet1/0/1 DESI FORWARDING NONE 1 Bridge-Aggregation1 DESI FORWARDING NONE 1 GigabitEthernet1/0/1 DESI FORWARDING NONE
Add Vlan 2 to 20
[5800A]vlan 2 to 20 Please wait... Done.
[5800A]dis stp brief MSTID Port Role STP State Protection 0 Bridge-Aggregation1 DESI FORWARDING NONE 0 GigabitEthernet1/0/1 DESI FORWARDING NONE 1 Bridge-Aggregation1 DESI FORWARDING NONE 1 GigabitEthernet1/0/1 DESI FORWARDING NONE 2 Bridge-Aggregation1 DESI DISCARDING NONE 2 GigabitEthernet1/0/1 DESI DISCARDING NONE
Configure 5800B
[5800B]stp region-configuration [5800B-mst-region] region-name Comware [5800B-mst-region] revision-level 1 [5800B-mst-region] instance 1 vlan 1 to 10 [5800B-mst-region] instance 2 vlan 11 to 20 [5800B-mst-region] active region-configuration [5800B-mst-region] [5800B-mst-region]quit
[5800B]dis stp region-configuration Oper configuration Format selector :0 Region name :Comware Revision level :1 Configuration digest :0x5f762d9a46311effb7a488a3267fca9f Instance Vlans Mapped 0 21 to 4094 1 1 to 10 2 11 to 20
[5800B]dis stp instance 1 -------[MSTI 1 Global Info]------- MSTI Bridge ID :32768.3822-d6e5-9a1f MSTI RegRoot/IRPC :32768.3822-d69c-fbd0 / 20 MSTI RootPortId :128.1 Master Bridge :0.3822-d6e5-9a1f Cost to Master :0 TC received :6
[5800B]dis stp region-configuration Oper configuration Format selector :0 Region name :Comware Revision level :1 Configuration digest :0x5f762d9a46311effb7a488a3267fca9f Instance Vlans Mapped 0 21 to 4094 1 1 to 10 2 11 to 20 [5800B]dis curr | i stp stp instance 0 root primary stp enable stp region-configuration
[5800B]stp instance 2 root primary [5800B]stp instance 0 root secondary [5800B]stp instance 1 root secondary [5800B]dis stp instance 0 -------[CIST Global Info][Mode MSTP]------- CIST Bridge :4096.3822-d6e5-9a1f Bridge Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 CIST Root/ERPC :0.3822-d6e5-85df / 0 CIST RegRoot/IRPC :0.3822-d6e5-85df / 1 CIST RootPortId :128.891 BPDU-Protection :disabled Bridge Config- Digest-Snooping :disabled CIST Root Type :SECONDARY root TC or TCN received :50 Time since last TC :0 days 0h:1m:7s
[5800B]dis stp instance 1 -------[MSTI 1 Global Info]------- MSTI Bridge ID :4096.3822-d6e5-9a1f MSTI RegRoot/IRPC :0.3822-d6e5-85df / 1 MSTI RootPortId :128.891 MSTI Root Type :SECONDARY root Master Bridge :0.3822-d6e5-85df Cost to Master :1 TC received :11
[5800B]dis stp instance 2 -------[MSTI 2 Global Info]------- MSTI Bridge ID :0.3822-d6e5-9a1f MSTI RegRoot/IRPC :0.3822-d6e5-9a1f / 0 MSTI RootPortId :0.0 MSTI Root Type :PRIMARY root Master Bridge :0.3822-d6e5-85df Cost to Master :1 TC received :0
[5800B]int g1/0/1 [5800B-GigabitEthernet1/0/1]port link-t trunk [5800B-GigabitEthernet1/0/1]dis this # interface GigabitEthernet1/0/1 port link-mode bridge port link-type trunk port trunk permit vlan 1 # return [5800B-GigabitEthernet1/0/1]port trunk per vl all Please wait........................................... Done. [5800B-GigabitEthernet1/0/1]quit [5800B]dis stp instance 2 -------[MSTI 2 Global Info]------- MSTI Bridge ID :0.3822-d6e5-9a1f MSTI RegRoot/IRPC :0.3822-d6e5-9a1f / 0 MSTI RootPortId :0.0 MSTI Root Type :PRIMARY root Master Bridge :0.3822-d6e5-85df Cost to Master :1 TC received :0
[5800B]dis stp brief MSTID Port Role STP State Protection 0 Bridge-Aggregation1 ROOT FORWARDING NONE 0 GigabitEthernet1/0/1 DESI FORWARDING NONE 1 Bridge-Aggregation1 ROOT FORWARDING NONE 1 GigabitEthernet1/0/1 DESI FORWARDING NONE [5800B]vlan 11 to 20 Please wait... Done. [5800B]
[5800B]dis stp instance 2 -------[MSTI 2 Global Info]------- MSTI Bridge ID :0.3822-d6e5-9a1f MSTI RegRoot/IRPC :0.3822-d6e5-9a1f / 0 MSTI RootPortId :0.0 MSTI Root Type :PRIMARY root Master Bridge :0.3822-d6e5-85df Cost to Master :1 TC received :2
[5800B]dis stp brief MSTID Port Role STP State Protection 0 Bridge-Aggregation1 ROOT FORWARDING NONE 0 GigabitEthernet1/0/1 DESI FORWARDING NONE 1 Bridge-Aggregation1 ROOT FORWARDING NONE 1 GigabitEthernet1/0/1 DESI FORWARDING NONE 2 Bridge-Aggregation1 DESI FORWARDING NONE 2 GigabitEthernet1/0/1 DESI LEARNING NONE
Configure 7500
[7500]stp region-configuration [7500-mst-region] region-name Comware [7500-mst-region] revision-level 1 [7500-mst-region] instance 1 vlan 1 to 10 [7500-mst-region] instance 2 vlan 11 to 20 [7500-mst-region] active region-configuration
[7500-mst-region]dis stp reg Oper configuration Format selector :0 Region name :Comware Revision level :1 Configuration digest :0x5f762d9a46311effb7a488a3267fca9f Instance Vlans Mapped 0 21 to 4094 1 1 to 10 2 11 to 20
[7500]port-group manual Trunk [7500-port-group-manual-Trunk]group-member g2/0/25 to g2/0/26 [7500-port-group-manual-Trunk]port link-t t [7500-port-group-manual-Trunk]port trunk p v all Configuring GigabitEthernet2/0/25....................................... .... Done. Configuring GigabitEthernet2/0/26....................................... .... Done. [7500-port-group-manual-Trunk]quit [7500]dis stp instance 0 -------[CIST Global Info][Mode MSTP]------- CIST Bridge :32768.3822-d69c-fbd0 Bridge Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 CIST Root/ERPC :0.3822-d6e5-85df / 0 CIST RegRoot/IRPC :0.3822-d6e5-85df / 20 CIST RootPortId :128.121 BPDU-Protection :disabled Bridge Config- Digest-Snooping :disabled TC or TCN received :38 Time since last TC :0 days 0h:4m:39s
[7500]dis stp instance 1 -------[MSTI 1 Global Info]------- MSTI Bridge ID :32768.3822-d69c-fbd0 MSTI RegRoot/IRPC :0.3822-d6e5-85df / 20 MSTI RootPortId :128.121 Master Bridge :0.3822-d6e5-85df Cost to Master :20 TC received :14
[7500]dis stp instance 2 -------[MSTI 2 Global Info]------- MSTI Bridge ID :32768.3822-d69c-fbd0 MSTI RegRoot/IRPC :32768.3822-d69c-fbd0 / 0 MSTI RootPortId :0.0 Master Bridge :0.3822-d6e5-85df Cost to Master :20 TC received :0
[7500]dis stp brief MSTID Port Role STP State Protection 0 GigabitEthernet2/0/25 ROOT FORWARDING NONE 0 GigabitEthernet2/0/26 ALTE DISCARDING NONE 1 GigabitEthernet2/0/25 ROOT FORWARDING NONE 1 GigabitEthernet2/0/26 ALTE DISCARDING NONE
[7500]dis stp brief MSTID Port Role STP State Protection 0 GigabitEthernet2/0/25 ROOT FORWARDING NONE 0 GigabitEthernet2/0/26 ALTE DISCARDING NONE 1 GigabitEthernet2/0/25 ROOT FORWARDING NONE 1 GigabitEthernet2/0/26 ALTE DISCARDING NONE
[7500]vlan 11 to 20 Please wait... Done. [7500]dis stp brief MSTID Port Role STP State Protection 0 GigabitEthernet2/0/25 ROOT FORWARDING NONE 0 GigabitEthernet2/0/26 ALTE DISCARDING NONE 1 GigabitEthernet2/0/25 ROOT FORWARDING NONE 1 GigabitEthernet2/0/26 ALTE DISCARDING NONE 2 GigabitEthernet2/0/25 ALTE DISCARDING NONE 2 GigabitEthernet2/0/26 ROOT FORWARDING NONE [7500]
[7500]dis stp brief MSTID Port Role STP State Protection 0 GigabitEthernet2/0/25 ALTE DISCARDING NONE 0 GigabitEthernet2/0/26 ROOT FORWARDING NONE
[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 :0.3822-d6e5-9a1f / 20 CIST RegRoot/IRPC :32768.3822-d69c-fbd0 / 0 CIST RootPortId :128.122 BPDU-Protection :disabled Bridge Config- Digest-Snooping :disabled TC or TCN received :28 Time since last TC :0 days 0h:0m:49s
We accomplished our goal of forwarding traffic on both sides of the 7500 links by mapping vlans to instances and the instances to roots across the two 5800 switches. With the 5800A switch handling root for instances 0 and 1, 5800B handling instance 2. The 7500 is no longer the root and will be blocking the vlans in instances 0,1 on port g2/0/26 and blocking vlans in instances 2 on port g2/0/25.
The green/gray and yellow colored crowns represent the root switch for the instances labelled.
###
<-PREVIOUS What is 802.1.q-2005 MSTP, Multi-Instance Spanning Tree?
NEXT-> How do you configure VRRP on Comware?
Comments
No comment yet.