set protocols spanning-tree rstp interface root-guard


The set protocols spanning-tree rstp interface root-guard command is used to enable or disable root guard function for RSTP.


Command Syntax

set protocols spanning-tree rstp interface <interface-name> root-guard <true | false>


Parameter

Parameter

Description

interface <interface-name>

Specifies the interface name.

root-guard <true | false>

Enables or disables root guard function for RSTP. The value could be true or false.

  •   true: enables root guard function for RSTP.
  •   false: disables root guard function for RSTP.

By default, root guard function for RSTP is disabled.


Usage Guidelines

If a port is enabled with the root guard function, its port role on all instances can only be the designated port. Once the port that is enabled with root guard receives BPDUs with a higher priority, the port enters the Discarding state and does not forward packets. If the port does not receive any BPDUs with a higher priority for a long time, the port automatically returns to the Forwarding state.


Example

  • Enable root guard function for RSTP on port ge-1/1/1.
admin@Xorplus# set protocols spanning-tree rstp interface ge-1/1/1 root-guard true
admin@Xorplus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.