R0106-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V7)
36
Parameters
mstp: Configures the spanning tree device to operate in MSTP mode.
pvst: Configures the spanning tree device to operate in PVST mode.
rstp: Configures the spanning tree device to operate in RSTP mode.
stp: Configures the spanning tree device to operate in STP mode.
Usage guidelines
The MSTP mode is compatible with the RSTP mode, and the RSTP mode is compatible with the STP mode.
The PVST mode's compatibility with other modes is as follows:
• Access port—The PVST mode is compatible with other modes in any VLAN.
• Trunk or hybrid port—The PVST mode is compatible with other modes only in VLAN 1.
Examples
# Configure the spanning tree device to operate in STP mode.
<Sysname> system-view
[Sysname] stp mode stp
Related commands
• stp enable
• stp global enable
• stp global mcheck
• stp mcheck
• stp vlan enable.
stp no-agreement-check
Use stp no-agreement-check to enable No Agreement Check on a port.
Use undo stp no-agreement-check to disable No Agreement Check on a port.
Syntax
stp no-agreement-check
undo stp no-agreement-check
Default
No Agreement Check is disabled.
Views
Layer 2 Ethernet interface view
Predefined user roles
network-admin
Usage guidelines
This command takes effect only after you enable it on the root port.
When the setting is configured in Layer 2 Ethernet interface view, it takes effect on only the interface.










