Spanning Tree Protocol (STP) is a network protocol that ensures a loop-free topology for a bridged Local Area Network (LAN). Multiple Spanning Tree Protocol (MSTP) is a protocol that creates multiple spanning trees (instances) for each Virtual LAN (VLAN) on a single physical network. This allows for each VLAN to have a configured root bridge and forwarding topology. This reduces the number of Bridge Protocol Data Units (BPDUs) across the network and reduces stress on the Central Processing Units (CPUs) of the network devices.
MSTP is an extension to Rapid Spanning Tree Protocol (RSTP). MSTP further develops the usefulness of VLANs. MSTP configures a separate spanning tree for each VLAN group and blocks all but one possible alternate path within each spanning tree. MSTP allows formation of Multiple Spanning Tree (MST) regions that can run multiple MST instances (MSTI). Each VLAN can be mapped to an MSTI and for the devices to be in the same region they must have the same VLANs to MSTIs mapping.
This article provides instructions on how to configure MSTP on a switch.
Step 1. Log in to the web-based utility then choose Spanning Tree > STP Status & Global Settings.
Important: To fully utilize the available features and functions of the switch, change to Advanced mode by clicking Advanced from the Display Mode drop-down list in the upper-right corner of the page.
Step 2. In the Global Settings area, check the Spanning Tree State check box to enable STP on the switch.
Note: Spanning Tree State is enabled by default. MSTP can be configured before STP is enabled on the switch.
Step 3. Click the Multiple STP radio button in the STP Operation Mode area to configure the STP mode as MSTP.
Step 4. Click Apply.
You should now have enabled MSTP on your switch.
The MSTP Properties page is used to define what region the switch is in. For devices to be in the same region, they must have the same region name and revision value.
Step 1. Choose Spanning Tree > MSTP Properties from the menu.
Step 2. Enter a name for the MSTP region in the Region Name field. The region name defines the logical boundary of the network. All switches in an MSTP region must have the same configured region name.
Step 3. Enter a revision number in the Revision field. This is a logical number that signifies a revision for the MSTP Configuration. All switches in an MSTP region must have the same revision number.
Step 4. Enter the maximum number of hops in the Max Hops field. Max Hops specifies the lifetime of BPDUs in hop counts. When a bridge receives a BPDU, it decrements the hop count by one and resends the BPDU with the new hop count. Once a bridge receives a BPDU with a hop count of zero, the BPDU is discarded.
Note: The IST Primary field displays the bridge priority and MAC address of the active switch of the region.
If you are unfamiliar with the terms used, check out Cisco Business: Glossary of New Terms.
Step 5. Click Apply.
The VLAN to MSTP Instance page is used to map VLANs to MST Instances. For devices to be in the same region, they must have identical mappings of VLANs to MST Instances. Multiple VLANs can be mapped to single MSTI, however a VLAN can have only a single MSTI. If a VLAN is not mapped to one of the MST Instances, the switch automatically maps the VLAN to the Core and Internal Spanning Tree (CIST). The CIST instance ID is instance ID 0.
Step 1. Choose Spanning Tree > VLAN to MSTP Instance from the menu.
Step 2. Click the radio button that corresponds to the desired MSTP Instance that you want to configure then click Edit.
Step 3. (Optional) From the MSTP Instance ID drop-down list, choose an MSTP Instance to edit.
Step 4. Enter the VLANs that are to be mapped to the MSTI. VLANs can be mapped individually (separated by commas) or as a range (through the use of a hyphen).
Step 5. Click the radio button that corresponds to the desired action in the Action area.
Step 6. Click Apply.
The MSTP Instance Settings page is used to define specifications for each MST instance.
Step 1. Choose Spanning Tree > MSTP Instance Settings from the menu of the web-based utility.
Step 2. From the Instance ID drop-down list, choose an Instance to be configured.
Note: The Included VLAN list displays the VLANs that are mapped to the instance.
Step 3. Enter the priority value of the switch in the Bridge Priority field. The switch with the highest priority (lowest priority value) will become the root bridge.
The field displays information about the MSTI.
The MSTP Interface settings page is used to configure MSTP settings per port for a selected MSTP instance.
Step 1. Choose Spanning Tree > MSTP Interface Settings from the web-based utility menu.
Step 2. From the Instance equals to drop-down list, click an instance to be configured.
Step 3. From the Interface Type equal to drop-down list, click either Port or LAG then click Go.
Step 4. Click the radio button that corresponds to the desired interface you want to configure then click Edit.
Step 5. (Optional) From the Instance ID drop-down list, choose the instance to be configured.
Step 6. (Optional) Click the radio button that corresponds to the desired Interface to be configured.
Step 7. From the Interface Priority drop-down list, choose the priority of the interface for the defined interface. The priority value determines the port choice when a bridge has two ports connected in a loop. The lower the value, the higher the priority the port will have on the bridge.
Step 8. Click the radio button that corresponds to the desired path cost in the Path Cost area. This is the path cost of the port which is added to the root path cost. The path cost is defined by the speed of the link between the switch and the next device in the network. The root path cost is the cumulative total of the path costs from the switch to the root bridge.
The following field displays information of the interface.
– Disabled — STP is disabled on the port. The port forwards traffic and learns MAC addresses.
– Blocking — The port is blocked. This means the port is not allowed to forward traffic or learn MAC addresses, however the port can forward BPDU packets.
– Listening — The port is in listening mode. This means the port is not allowed to forward traffic and cannot learn MAC addresses.
– Learning — The port is in learning mode. This means the port is not allowed to forward traffic but it is allowed to learn new MAC addresses.
– Forwarding — The port is in forwarding mode. This means the port is allowed to forward traffic and can learn new MAC addresses.
– Root — The port that provides the lowest cost path for forwarding packets to the root device.
– Designated — The port through which the bridge is connected to the LAN. This provides the lowest root path cost from the LAN to the Root Bridge for the MST instance.
– Alternate — The port provides an alternate path to the root device from the root interface.
– Backup — The port provides a backup path to the designated port path toward the spanning tree. This is due to a configuration in which two ports are connected in a loop by a point to point link. Backup ports can be used when a LAN needs two or more connections to a shared segment of the network.
– Disabled — The port is not part of the spanning tree.
– Boundary — The port is a boundary port. A boundary port is used to attach MST bridges to remote LANs. A boundary port indicates whether the connected device works in RSTP or STP mode.
– Internal — The port is an internal port in the MSTP instance.
Step 9. Click Apply.
You should now have configured MSTP on your switch.
Revision | Publish Date | Comments |
---|---|---|
1.0 |
13-Dec-2018 |
Initial Release |