1-35
undo stp root-protection
View
Layer 2 Ethernet port view, port group view, Layer 2 aggregate port view
Default Level
2: System level
Parameters
None
Description
Use the stp root-protection command to enable the root guard function on the port(s).
Use the undo stp root-protection command to restore the default.
By default, the root guard function is disabled.
Note that:
z Configured in Layer 2 Ethernet port view, the setting takes effect on the current port only;
configured in port group view, the setting takes effect on all ports in the port group; configured in
Layer 2 aggregate port view, the setting takes effect only on the aggregate port; configured on the
member port in an aggregation group, the setting can take effect only after the port leaves the
aggregation group.
z Among loop guard, root guard and edge port settings, only one function (whichever is configured
the earliest) can take effect on a port at the same time.
Related commands: stp edged-port, stp loop-protection.
Examples
# Enable the root guard function for GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] stp root-protection
stp tc-protection
Syntax
stp tc-protection enable
stp tc-protection disable
View
System view
Default Level
2: System level
Parameters
None