BPDU Guard protects end-host switch ports from unexpected Spanning Tree Protocol (STP) messages. When a protected port receives a Bridge Protocol Data Unit (BPDU), the switch places the port into an error-disabled state. section 14.5 section 14.5.2
Use BPDU Guard with PortFast on ports intended only for end hosts:
- Configure a specific interface with spanning-tree bpduguard enable. section 14.5.2
- Use spanning-tree portfast bpduguard default globally to enable it on all PortFast-enabled ports. section 14.5.2
- If someone connects another switch, the received BPDU triggers protection before that switch can affect the STP topology, such as becoming the root bridge. section 14.5.2
Unexpected switch connection
A PortFast-enabled access port is accidentally connected to another switch. BPDU Guard detects the other switch's BPDU and disables the port. The port becomes nonoperational and appears as down/down in show ip interface brief. After disconnecting the offending switch, reset the port with shutdown followed by no shutdown. section 14.5.2
