Command Manual – STP
Quidway S8500 Series Routing Switches
Chapter 1 MSTP Configuration Commands
Huawei Technologies Proprietary
1-12
View
System view, Ethernet port view
Parameter
enable
: Enables global or port MSTP.
disable
: Disables global or port MSTP.
Description
Use the
stp
command to enable or disable MSTP on a device or a port.
Use the
undo stp
command to restore the default MSTP state on a device or a port.
By default, MSTP is disabled on the switch.
After MSTP is enabled, the switch determines to run MSTP in STP-compatible mode or
MSTP mode as per your configurations. The switch serves as a transparent bridge after
MSTP is disabled.
After MSTP is enabled, it will dynamically maintain the spanning tree state of the
corresponding VLAN according to the received configuration BPDU until it is disabled.
After MSTP is disabled, it will not maintain the state.
By default, global and port MSTP are disabled. When you enable MSTP on a device or
a port, both global and port MSTP are enabled; if you do not enable MSTP globally, you
will fail to use the
stp enable
command on a port.
Related command:
stp mode, stp interface
.
Example
# Enable MSTP globally.
<Quidway>system-view
System View: return to User View with Ctrl+Z.
[Quidway] stp enable
# Disable MSTP on Ethernet 2/1/1
<Quidway>system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet 2/1/1
[Quidway-Ethernet 2/1/1] stp disable
1.1.12 stp bpdu-protection
Syntax
stp bpdu-protection
undo stp bpdu-protection