127
5.
Configure Device D:
# Enter MST region view, and configure the MST region name as
example
.
<DeviceD> system-view
[DeviceD] stp region-configuration
[DeviceD-mst-region] region-name example
# Map VLAN 10, VLAN 30, and VLAN 40 to MSTI 1, MSTI 3, and MSTI 4, respectively.
[DeviceD-mst-region] instance 1 vlan 10
[DeviceD-mst-region] instance 3 vlan 30
[DeviceD-mst-region] instance 4 vlan 40
# Configure the revision level of the MST region as 0.
[DeviceD-mst-region] revision-level 0
# Activate MST region configuration.
[DeviceD-mst-region] active region-configuration
[DeviceD-mst-region] quit
# Enable the spanning tree feature globally.
[DeviceD] stp global enable
Verifying the configuration
In this example, Device B has the lowest root bridge ID. As a result, Device B is elected as the root
bridge in MSTI 0.
When the network is stable, you can use the
display stp brief
command to display brief spanning
tree information on each device.
# Display brief spanning tree information on Device A.
[DeviceA] display stp brief
MST ID Port Role STP State Protection
0 HundredGigE1/0/1 ALTE DISCARDING NONE
0 HundredGigE1/0/2 DESI FORWARDING NONE
0 HundredGigE1/0/3 ROOT FORWARDING NONE
1 HundredGigE1/0/1 DESI FORWARDING NONE
1 HundredGigE1/0/3 DESI FORWARDING NONE
3 HundredGigE1/0/2 DESI FORWARDING NONE
3 HundredGigE1/0/3 ROOT FORWARDING NONE
# Display brief spanning tree information on Device B.
[DeviceB] display stp brief
MST ID Port Role STP State Protection
0 HundredGigE1/0/1 DESI FORWARDING NONE
0 HundredGigE1/0/2 DESI FORWARDING NONE
0 HundredGigE1/0/3 DESI FORWARDING NONE
1 HundredGigE1/0/2 DESI FORWARDING NONE
1 HundredGigE1/0/3 ROOT FORWARDING NONE
3 HundredGigE1/0/1 DESI FORWARDING NONE
3 HundredGigE1/0/3 DESI FORWARDING NONE
# Display brief spanning tree information on Device C.
[DeviceC] display stp brief
MST ID Port Role STP State Protection
0 HundredGigE1/0/1 DESI FORWARDING NONE
0 HundredGigE1/0/2 ROOT FORWARDING NONE
0 HundredGigE1/0/3 DESI FORWARDING NONE