The stp link-share-protection command enables the shared-link protection for an MSTP process.
The undo stp link-share-protection command disables the shared-link protection of an MSTP process.
By default, the shared-link protection of an MSTP process is disabled.
Usage Scenario
In networking with a switching device dual-homed to an upper-layer network, if a public link becomes faulty, rings that the public link accesses may unblock their blocked ports. As a result, a permanent network loop is generated.
The stp link-share-protection command can be used to enable shared-link protection in a specified process in order to prevent this problem. Then, when a public link becomes faulty, the working mode of each device on the public link will be forcibly switched to RSTP. After shared-link protection and root protection are deployed, a port will still be in blocked state even after receiving packets of a higher priority from a downstream device. This prevents network loops.
Precautions
Shared-link protection is valid only in processes. Before running the stp link-share-protection command, check that relevant ports have been correctly bound to the corresponding process using the stp binding process command.