This section describes how to configure a spanning tree protocol.
A loop can easily occur on a complex network. To implement redundancy, network designers tend to deploy multiple physical links between two devices, one of which is the master and the others are the backup. Loops may occur. A loop causes broadcast storms. Consequently, network resources are exhausted and the network breaks down. In addition, a loop causes MAC address table flapping. As a result, MAC address entries are damaged.
You can deploy a spanning tree protocol to trim a network with loops into a loop-free tree network. The spanning tree protocol prevents infinite looping of packets to ensure packet processing capabilities of devices.
Table 1 describes parameters on the spanning tree protocol configuration page.
Perform either of the following operations.
By default, STP is enabled on a port.
If the STP status and port roles are displayed on all ports that need to be enabled with STP, the configuration is successful and STP takes effect.
If the interface is shut down, goes Down, or is not on the ring network, after STP is successfully configured, the information that STP has been enabled and is invalid is displayed on the interface icon.
If STP is configured on an Eth-Trunk, STP takes effect only on the Eth-Trunk. However, the STP status, port roles, and Eth-Trunk ID are displayed on its member interfaces.