Spanning Tree Protocol (STP) protects Layer 2 broadcast domains from broadcast storms. It sets the links to standby mode to prevent network loops. Network Loops occur when there are alternate routes between hosts. These loops cause Layer 2 switches to forward traffic across the network infinitely, reducing network efficiency. STP provides a unique path between endpoints on a network. These paths eliminate the possibility of network loops. STP is typically configured when there are redundant links to a host to prevent network loop.
This article aims to show you how to configure STP on a switch.
Step 1. Log in to the web-based utility and choose Spanning Tree > STP Status & Global Settings.
Step 2. Check the Spanning Tree State check box to enable spanning tree.
Step 3. (Optional) Check the STP Loopback Guard check box to enable the feature. Enabling this feature checks if a root port or an alternate root port receives Bridge Protocol Data Units (BPDUs).
Note: In this example, STP Loopback Guard is enabled.
Step 4. Choose the STP Operation Mode.
Note: In this example, RSTP is chosen.
Step 5. (Optional) Choose the BPDU Handling mode. Choosing the BPDU Handling mode is only available when Spanning Tree State is not enabled.
Note: In this example, Flooding is chosen.
Step 6. Choose the Path Cost Default Values. This selects the method used to assign default path costs to the STP ports. The default path cost assigned to an interface varies according to the selected method.
Step 7. Under the Bridge Settings area, enter the bridge priority value in the Priority field. After exchanging BPDUs, the device with the lowest priority becomes the Root Bridge. In case all bridges use the same priority, then their MAC addresses are used to determine the Root Bridge. The bridge priority value is provided in increments of 4096.
Note: The bridge priority value is provided in increments of 4096. For example, 4096, 8192, 12288, and so on. The default value is 32768.
Step 8. Enter the Hello Time interval in seconds that a Root Bridge waits between configuration messages in the Hello Time field.
Step 9. Enter the Max Age value in the Max Age field. It is the interval, in seconds, that the device can wait without receiving a configuration message, before attempting to redefine its own configuration.
Step 10. Enter the Forward Delay value in the Forward Delay field. This is the interval that a bridge remains in a learning state before forwarding packets.
Step 11. Click Apply.
The Designated Root area displays the following:
You should now have successfully configured STP.
Revision | Publish Date | Comments |
---|---|---|
1.0 |
13-Dec-2018 |
Initial Release |