The loop protection function suppresses the loops caused by link congestion.
On a network running Rapid Spanning Tree Protocol (RSTP), a device maintains the root port status and status of blocked ports by receiving Bridge Protocol Data Units (BPDUs) from an upstream device. If the device cannot receive BPDUs from the upstream because of link congestion or unidirectional-link failure, the device re-selects a root port. The original root port becomes a designated port and the original blocked ports change to the Forwarding state. This may cause network loops. To address such a problem, configure loop protection.
After loop protection is configured, if the root port or alternate port does not receive BPDUs from the upstream device, the root port is blocked and the device notifies the NMS that the port enters the Discarding state. The blocked port remains in the Blocked state and no longer forwards packets. This prevents loops on the network. The root port restores the Forwarding state after receiving new BPDUs.
Do as follows on a root port and an alternate port on a device.
The system view is displayed.
The view of the Ethernet interface participating in STP calculation is displayed.
The following configuration can be configured both on a Layer 2 interface and a Layer 3 interface.
Loop protection for the root port or the alternate port is configured on the device.
The configuration is committed.