OcNOS-RON : Layer 2 Guide : Layer 2 Command Reference : Spanning Tree Protocol Commands : spanning-tree guard
spanning-tree guard
Use this command to enable the root guard feature for the port. This feature disables reception of superior BPDUs.
The root guard feature makes sure that the port on which it is enabled is a designated port. If the root guard enabled port receives a superior BPDU, it goes to a Listening state (for STP) or discarding state (for RSTP and MSTP).
Use the no parameter with this command to disable the root guard feature for the port.
Command Syntax
spanning-tree guard root
no spanning-tree guard root
Parameters
root
Set to disable reception of superior BPDUs
Default
By default, spanning-tree guard root is enabled
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#interface eth0
(config-if)#spanning-tree guard root
Last modified date: 07/13/2023