R3303-HP HSR6800 Routers Layer 2 - LAN Switching Configuration Guide
72
Step Command Remarks
3. Enable the loop guard
function for the ports.
stp loop-protection
By default, loop guard is
disabled.
Enabling TC-BPDU guard
When a device receives topology change (TC) BPDUs (the BPDUs that notify devices of topology
changes), the device flushes the forwarding address entries. If someone forges TC-BPDUs to attack the
device, the device will receive a large number of TC-BPDUs within a short time and be busy with flushing
forwarding address entries. This affects network stability.
With the TC-BPDU guard function, you can set the maximum number of immediate forwarding address
entry flushes that the device can perform every a specified period of time (10 seconds). For TC-BPDUs
received in excess of the limit, the device performs a forwarding address entry flush when the time period
expires. This prevents frequent flushing of forwarding address entries.
HP recommends not disabling this feature.
To enable TC-BPDU guard:
Step Command Remarks
1. Enter system view.
system-view N/A
2. Enable the TC-BPDU guard function.
stp tc-protection enable
Optional.
By default, TC-BPDU guard is
enabled.
3. Configure the maximum number of
forwarding address entry flushes that the
device can perform every 10 seconds.
stp tc-protection threshold
number
Optional.
The default setting is 6.
Displaying and maintaining the spanning tree
Task Command Remarks
Display information about ports blocked
by spanning tree protection functions.
display stp abnormal-port [ | { begin |
exclude | include } regular-expression ]
Available in any
view.
Display BPDU statistics on ports.
display stp bpdu-statistics [ interface
interface-type interface-number [ instance
instance-id ] ] [ | { begin | exclude |
include } regular-expression ]
Available in any
view.
Display information about ports shut
down by spanning tree protection
functions.
display stp down-port [ | { begin |
exclude | include } regular-expression ]
Available in any
view.
Display historical information about port
role calculations for the specified MSTI or
all MSTIs (in standalone mode).
display stp [ instance instance-id ] history
[ slot slot-number ] [ | { begin | exclude |
include } regular-expression ]
Available in any
view.