R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101

103
Examples
# In MSTP mode, specify the firewall as a secondary root bridge in MSTI 1.
<Sysname> system-view
[Sysname] stp instance 1 root secondary
stp root-protection
Syntax
stp root-protection
undo stp root-protection
View
Ethernet interface view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
None
Description
Use stp root-protection to enable the root guard function on the ports.
Use undo stp root-protection to restore the default.
By default, the root guard function is disabled.
Configured in Ethernet interface view, the setting takes effect on the interface only.
Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface.
Configured on the member port in an aggregation group, the setting takes effect only after the port
leaves the aggregation group.
Among loop guard, root guard and edge port settings, only one function (whichever is configured the
earliest) takes effect on a port at the same time.
Related commands: stp edged-port and stp loop-protection.
Examples
# Enable the root guard function for GigabitEthernet 0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] stp root-protection
stp tc-protection
Syntax
stp tc-protection enable
stp tc-protection disable
View
System view