
72
Use
undo stp root-protection
to restore the default.
By default, the root guard function is disabled.
Among loop guard, root guard and edge port settings, only the first configured function takes effect on
a port.
Related commands:
stp edged-port
and
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
Description
Use
stp tc-protection enable
to enable the TC-BPDU attack guard function for the device.
Use
stp tc-protection disable
to disable the TC-BPDU attack guard function for the device.
By default, the TC-BPDU attack guard function is enabled.
Examples
# Disable the TC-BPDU attack guard function for the device.
<Sysname> system-view
[Sysname] stp tc-protection disable
stp tc-protection threshold
Syntax
stp tc-protection threshold
number
undo stp tc-protection threshold
View
System view