125
Spanning tree configuration example
MSTP configuration example
Network requirements
As shown in
, all devices on the network are in the same MST region. Device A and Device
B work at the distribution layer. Device C and Device D work at the access layer.
Configure MSTP so that frames of different VLANs are forwarded along different spanning trees.
•
VLAN 10 frames are forwarded along MSTI 1.
•
VLAN 30 frames are forwarded along MSTI 3.
•
VLAN 40 frames are forwarded along MSTI 4.
•
VLAN 20 frames are forwarded along MSTI 0.
VLAN 10 and VLAN 30 are terminated on the distribution layer devices, and VLAN 40 is terminated
on the access layer devices. The root bridges of MSTI 1 and MSTI 3 are Device A and Device B,
respectively, and the root bridge of MSTI 4 is Device C.
Figure 42 Network diagram
Configuration procedure
1.
Configure VLANs and VLAN member ports. (Details not shown.)
{
Create VLAN 10, VLAN 20, and VLAN 30 on both Device A and Device B.
{
Create VLAN 10, VLAN 20, and VLAN 40 on Device C.
{
Create VLAN 20, VLAN 30, and VLAN 40 on Device D.
{
Configure the ports on these devices as trunk ports and assign them to related VLANs.
2.
Configure Device A:
# Enter MST region view, and configure the MST region name as
example
.
<DeviceA> system-view
[DeviceA] stp region-configuration
[DeviceA-mst-region] region-name example
# Map VLAN 10, VLAN 30, and VLAN 40 to MSTI 1, MSTI 3, and MSTI 4, respectively.
[DeviceA-mst-region] instance 1 vlan 10
H
G
E
1/
0/
1
H
G
E
1/0
/1
H
G
E
1/
0/
1
H
G
E
1/0
/1