< Home

stp link-share-protection

Function

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.

Format

stp link-share-protection

undo stp link-share-protection

Parameters

None

Views

MSTP process view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Enable the shared-link protection for MSTP process 1.

<HUAWEI> system-view
[HUAWEI] stp process 1
[HUAWEI-mst-process-1] stp link-share-protection
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >