stp root-protection
Use stp root-protection to enable root guard on a port.
Use undo stp root-protection to disable root guard on a port.
Syntax
stp root-protection
undo stp root-protection
Default
Root guard is disabled.
Views
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
Predefined user roles
network-admin
Usage guidelines
On a port, the loop guard feature and the root guard feature are mutually exclusive.
When the command is configured in Layer 2 Ethernet interface view, it takes effect only on that interface.
When the command is configured in Layer 2 aggregate interface view, it takes effect only on the aggregate interface.
When the command is configured on a member port in an aggregation group, it takes effect only after the port leaves the aggregation group.
Examples
# Enable root guard for Ten-GigabitEthernet 1/0/1.
<Sysname> system-view [Sysname] interface ten-gigabitethernet 1/0/1 [Sysname-Ten-GigabitEthernet1/0/1] stp root-protection
Related commands
stp edged-port
stp loop-protection