Configuring MSTP
Procedure
Example
This example creates the following configuration:
- Sets the spanning tree mode to mstp.
Creates the MST region reg.
- Sets the MSTP revision number to
1
. - Creates the spanning tree instance 1 and assigns VLAN 30 to it.
- Creates the spanning tree instance 2 and assigns VLAN 40 to it.
- Enables spanning tree.
switch(config)# spanning-tree mode mstp switch(config)# spanning-tree config-name reg switch(config)# spanning-tree config-revision 1 switch(config)# spanning-tree inst 1 vlan 30 switch(config)# spanning-tree inst 2 vlan 40 switch(config)# spanning-tree switch(config)# exit switch# show spanning-tree Spanning tree status : Enabled Protocol: MSTP MST0 Root ID Priority : 32768 MAC-Address: 48:0f:cf:af:f2:b2 This bridge is the root Hello time(in seconds):2 Max Age(in seconds):20 Forward Delay(in seconds):15 Bridge ID Priority : 32768 MAC-Address: 48:0f:cf:af:f2:b2 Hello time(in seconds):2 Max Age(in seconds):20 Forward Delay(in seconds):15 Port Role State Cost Priority Type ------------ -------------- ------------ ------- ---------- ---------- 1/1/1 Designated Forwarding 20000 128 point_to_point 1/1/2 Designated Forwarding 20000 128 point_to_point switch# show spanning-tree mst #### MST0 Vlans mapped: 1-29,31-39,41-4094 Bridge Address:48:0f:cf:af:f2:b2 priority:32768 Root Regional Root Operational Hello time(in seconds): 2 Forward delay(in seconds):15 Max-age(in seconds):20 txHoldCount(in pps): 6 Configured Hello time(in seconds): 2 Forward delay(in seconds):15 Max-age(in seconds):20 Max-Hops:20 Root Address:48:0f:cf:af:f2:b2 Priority:32768 Port:0 Path cost:0 Regional Root Address:48:0f:cf:af:f2:b2 Priority:32768 Internal cost:0 Rem Hops:20 Port Role State Cost Priority Type -------------- -------------- ------------ ---------- ---------- ---------- 1/1/1 Designated Forwarding 20000 128 point_to_point 1/1/2 Designated Forwarding 20000 128 point_to_point #### MST1 Vlans mapped: 30 Bridge Address:48:0f:cf:af:f2:b2 Priority:32768 Root Address:48:0f:cf:af:f2:b2 Priority:32768 Port:0, Cost:0, Rem Hops:20 Port Role State Cost Priority Type -------------- -------------- ------------ ------- ---------- ---------- 1/1/1 Designated Forwarding 20000 128 point_to_point 1/1/2 Designated Forwarding 20000 128 point_to_point #### MST2 Vlans mapped: 40 Bridge Address:48:0f:cf:af:f2:b2 Priority:32768 Root Address:48:0f:cf:af:f2:b2 Priority:32768 Port:0, Cost:0, Rem Hops:20 Port Role State Cost Priority Type -------------- -------------- ------------ ------- ---------- ---------- 1/1/1 Designated Forwarding 20000 128 point_to_point 1/1/2 Designated Forwarding 20000 128 point_to_point