Configuring BPDU Protection on the Switch
Context
Edge ports are directly connected to user terminals and will not receive BPDUs. If a switch is attacked by bogus BPDUs, edge ports will receive these BPDUs. The switch then sets the edge ports as non-edge ports and recalculates the spanning tree, resulting in network flapping.
BPDU protection can be used to protect the switch against malicious attacks. After BPDU protection is enabled on the switch, the switch shuts down an edge port if the edge port receives a BPDU.
Perform the following operations on the switch configured with an edge port.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
stp bpdu-protection
BPDU protection is enabled on the switch.
By default, BPDU protection is disabled on the switch.
Follow-up Procedure
- A smaller value indicates a shorter delay for the port to go Up automatically and a higher frequency at which the port alternates between Up and Down states.
- A larger value indicates a longer delay for the port to go Up automatically and longer traffic interruption.