The stp enable command enables STP/Rapid Spanning Tree Protocol (RSTP)/Multiple Spanning Tree Protocol (MSTP) on a device or an interface.
The undo stp enable command cancels the stp enable command configuration.
The stp disable command disables STP/RSTP/MSTP on a device or an interface.
The undo stp disable command cancels the stp disable command configuration.
By default, STP/RSTP/MSTP is enabled on a Layer 2 interface.
Usage Scenario
Configuration Impact
If STP/RSTP/MSTP is enabled on an interface, the interface participates in spanning tree calculation, and its forwarding state is determined based the calculation result.
If STP/RSTP/MSTP is disabled on an interface, the interface does not participate in spanning tree calculation and is always in the forwarding state.Precautions
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] vsi 1 [*HUAWEI-vsi-1] pwsignal ldp [*HUAWEI-vsi-1-ldp] vsi-id 33 [*HUAWEI-vsi-1-ldp] peer 1.1.1.1 [*HUAWEI-vsi-1-ldp] peer 1.1.1.1 pw pw1 [*HUAWEI-vsi-1-ldp-pw-pw1] quit [*HUAWEI-vsi-1-ldp] pw pw1 [*HUAWEI-vsi-1-ldp-pw-pw1] stp enable