OcNOS-SP : Layer 2 Guide : Layer 2 Command Reference : Spanning Tree Protocol Commands : spanning-tree bpdu-guard
spanning-tree bpdu-guard
Use this command to enable or disable the BPDU Guard feature on a port.
This command supersedes the bridge level configuration for the BPDU Guard feature. When the enable or disable parameter is used with this command, this configuration takes precedence over bridge configuration. However, when the default parameter is used with this command, the bridge-level BPDU Guard configuration takes effect.
Use the show spanning tree command to display administratively configured and currently running values of the BPDU filter parameter for the bridge and port (see show spanning-tree).
Use the no parameter with this command to set the BPDU Guard feature on a port to default.
Command Syntax
spanning-tree bpdu-guard (enable|disable|default)
no spanning-tree bpdu-guard
Parameters
default
Sets the BPDU-guard to the default level.
disable
Disables the BPDU-guard.
enable
Enables the BPDU-guard.
Default
By default, spanning-tree bpdu-guard is default
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#interface eth0
(config-if)#spanning-tree bpdu-guard enable
 
(config-if)#no spanning-tree bpdu-guard
Last modified date: 07/06/2023