Configuring Basic MSTP Functions
Multiple Spanning Tree Protocol (MSTP) based on the basic STP/Rapid Spanning Tree Protocol (RSTP) function divides a switching network into multiple regions, each of which has multiple spanning trees that are independent of each other. MSTP isolates user traffic and service traffic, and load-balances VLAN traffic.
Applicable Environment
On a complex network, loops are inevitable. With the requirement for network redundancy backup, network designers tend to deploy multiple physical links between two devices, one of which is the master and the others are the backup. Loops are likely or bound to occur in such a situation. Loops will cause broadcast storms, thereby exhausting network resources and paralyzing the network. Loops also cause flapping of MAC address tables and thus damages MAC address entries.
MSTP can be deployed on a network to eliminate loops. If a loop is detected, MSTP blocks one or more ports to eliminate the loop. In addition, Multiple Spanning Tree Instances (MSTIs) can be configured to load-balance VLAN traffic.
As shown in Figure 13-3, DeviceA, DeviceB, DeviceC, and DeviceD all support MSTP. It is required to create MSTI 1 and MSTI 2, configure a root bridge for each MSTI, and set the ports to be blocked to load-balance traffic of VLANs 1 to 10 and VLANs 11 to 20 among different paths.
If the current device supports MSTP, configuring MSTP is recommended.
- Configuring the MSTP Mode
Before configuring basic Multiple Spanning Tree Protocol (MSTP) functions, you need to configure the working mode of a device to MSTP. MSTP is compatible with STP and Rapid Spanning Tree Protocol (RSTP). - Configuring an MST Region
Multiple Spanning Tree Protocol (MSTP) divides a switching network into multiple MST regions. After a Multiple Spanning Tree (MST) region name, VLAN-to-instance mappings, and a Multiple Spanning Tree Protocol (MSTP) revision number are configured, MST region configuration is complete. - (Optional) Configuring a Priority for a Device in an MSTI
The lower the numerical value is, the higher priority a device has and the more likely the device will be selected as a root bridge. You can configure the cost of the path from a device to the root bridge to preferentially select a root port. - (Optional) Configuring a Path Cost of a Port in an MSTI
The Multiple Spanning Tree Protocol (MSTP) path cost determines root port selection in a Multiple Spanning Tree Instance (MSTI). The port with the lowest path cost to the root bridge is selected as a root port. - (Optional) Configuring a Path Cost of a Port in an MSTI
The Multiple Spanning Tree Protocol (MSTP) path cost determines root port selection in a Multiple Spanning Tree Instance (MSTI). The port with the lowest path cost to the root bridge is selected as a root port. - (Optional) Configuring a Port Priority in an MSTI
The lower the numerical value, the more likely the port on a device becomes a designated port; the higher the numerical value, the more likely the port is to be blocked. - Enabling MSTP
After basic Multiple Spanning Tree Protocol (MSTP) functions are configured on a device, enabling the MSTP function is required so that MSTP can work properly. - Verifying the Basic MSTP Function Configuration
After basic Multiple Spanning Tree Protocol (MSTP) functions are configured, verify the configuration.