30% off every course until Sunday, October 11. Our biggest update yet, and we'd like you to try it. Applied automatically at checkout.

Choose your certification
Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

3.5.4. STP Protection Mechanisms

FeaturePurposeAction
BPDU GuardDisable port if BPDU receivedErr-disable port
BPDU FilterStop sending/receiving BPDUsDisables STP
Root GuardPrevent switch from becoming rootBlock superior BPDUs
Loop GuardPrevent unidirectional link failureBlock if no BPDUs received

Where each one goes: PortFast and BPDU Guard belong on access (edge) ports facing end devices. Root Guard goes on designated ports facing switches that must never become root; Loop Guard goes on switch-to-switch root and alternate ports, which expect a steady stream of BPDUs.

BPDU Guard Configuration (recommended with PortFast):
Switch(config)# interface GigabitEthernet0/1
Switch(config-if)# spanning-tree portfast
Switch(config-if)# spanning-tree bpduguard enable
Enable globally:
Switch(config)# spanning-tree portfast bpduguard default
Verification:
Switch# show spanning-tree vlan 10
Switch# show spanning-tree interface GigabitEthernet0/1 detail
Switch# show spanning-tree summary
See how it connects
Alvin Varughese
Written byAlvin Varughese
Founder•20 professional certifications