124
stp mode
Description
Use the stp mode command to configure the spanning tree work mode.
Use the undo stp mode command to restore the default.
By default, a spanning tree device works in MSTP mode.
Related commands: stp mcheck and stp enable.
Syntax
stp mode { stp | rstp | mstp | pvst }
undo stp mode
View
System view
Default level
2: System level
Parameters
stp: Configures the spanning tree device to work in STP-compatible mode.
rstp: Configures the spanning tree device to work in RSTP mode.
mstp: Configures the spanning tree device to work in MSTP mode.
pvst: Configures the spanning tree device to work in PVST mode.
Example
# Configure the spanning tree device to work in STP-compatible mode.
<Sysname> system-view
[Sysname] stp mode stp
stp no-agreement-check
Description
Use the stp no-agreement-check command to enable No Agreement Check on the ports.
Use the undo stp no-agreement-check command to disable No Agreement Check on the ports.
By default, No Agreement Check is disabled.
Configured in Ethernet interface view, the setting takes effect only on the interface.
Configured in port group view, the setting takes effect on all member ports in the port group.
Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface.
Configured on a member port in an aggregation group, the setting takes effect only after the port leaves
the aggregation group.
This feature takes effect only after you enable it on the root port.