guard root
To prevent a port from becoming the root port for the switch, use the guard root command in MSTP interface
configuration submode.
guard root
Syntax Description
This command has no keywords or arguments.
Command Default
RootGuard is disabled.
Command Modes
MSTP interface configuration
Command History
ModificationRelease
This command was introduced.Release 3.7.1
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
This command enables the Root Guard feature on the interface, by preventing the port from becoming a root
port. This feature can be used to enforce the location of the root bridge within the MSTP network. For more
information on guard root feature, refer to the Implementing Multiple Spanning Tree Protocol module in the
Cisco ASR 9000 Series Aggregation Services Router L2VPN and Ethernet Services Configuration Guide.
Task ID
OperationsTask ID
read, writeinterface
Examples
The following example shows how to enable RootGuard on the port:
RP/0/RSP0/CPU0:router(config-mstp-if)# guard root
Related Commands
DescriptionCommand
Enables debugging for sent and received MSTP packets.debug spanning-tree mst packet, on page 479
Enables debugging protocol-state changes such as port role or
state changes, topology change notification.
debug spanning-tree mst protocol-state, on
page 481
Cisco ASR 9000 Series Aggregation Services Router VPN and Ethernet Services Command Reference, Release
6.1.x
507
Multiple Spanning Tree Protocol Commands
guard root