Command Reference MSTP Commands
9.20 spanning-tree bpduguard
Use this command to enable the BPDU guard function on the interface. You can use the enabled or
disabled option of the command to enable or disable the BPDU guard function on the interface.
spanning-tree bpduguard [ enabled | disabled ]
Enables BPDU guard on the interface.
Disables BPDU guard on the interface.
This function is disabled by default.
Interface configuration mode.
1. If BPDU guard is enabled on a port, the port enters the error-disabled state after receiving a
BPDU.
2. Run command errdisable recovery [ interval seconds ] to recover the interface in
Error-disabled state.
The following example enables the BPDU guard function on the interface.
Ruijie(config)# interface gigabitethernet 1/1
Ruijie(config-if-interface-id-interface-id)# spanning-tree bpduguard enable
show spanning-tree interface
Displays the STP configuration of the interface.
9.21 spanning-tree compatible enable
Use this command to send the message selectively carried with MSTI according to the interface
attribute of current port to realize interconnection with other vendors. Use the no form of this
command to restore the default setting.
spanning-tree compatible enable
no spanning-tree compatible enable