H3 · Practical network exams · Cisco IOS / IOS XE
BPDU Guard · Finals
Configuration first, verification second, theory third. Reference templates require task-specific adaptation.
Content version 1.1-draft
Skills Exam
Quick explanation
BPDU Guard protects an edge port by placing it into err-disabled state when a BPDU is received under the configured guard policy.
Configuration
Replace highlighted placeholders. Configure only the variants required by the task.
Prerequisites and dependency links
- Identify edge ports.
- Remove the unexpected BPDU source before recovering an affected port.
Interface BPDU Guard Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode.
Section link
enable
configure terminal
interface [INTERFACE]
switchport
switchport mode access
switchport access vlan [VLAN-ID]
spanning-tree portfast
spanning-tree bpduguard enable
no shutdown
exit
end
Command parameters
[INTERFACE]- Local interface name including type and number, or an SVI as appropriate.
[VLAN-ID]- VLAN identifier.
Global PortFast BPDU Guard Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode.
Section link
enable
configure terminal
spanning-tree portfast default
spanning-tree portfast bpduguard default
end
Optional timed recovery Optional when requested
Start in privileged EXEC; block enters and exits configuration mode.
Section link
- Only enable automatic recovery if requested. A persistent BPDU source can repeatedly disable the port.
enable
configure terminal
errdisable recovery cause bpduguard
errdisable recovery interval [RECOVERY-SECONDS]
end
Command parameters
[RECOVERY-SECONDS]- Errdisable recovery interval in seconds.
Show / Verify
show spanning-tree summary
Example output
PortFast BPDU Guard Default is enabled
Confirm the global guard policy if configured.
show interfaces status err-disabled
Example output
Gi0/1 err-disabled bpduguard
An unexpected BPDU can disable a guarded port; locate and remove the cause before recovery.
Example output
Confirm timed recovery only if requested.
Connectivity verification
Layer 2 endpoint test
After sending traffic between the intended hosts, verify that the expected MAC addresses are learned on the correct VLAN and interface.
show mac address-table vlan [VLAN-ID]
show interfaces [INTERFACE] switchport
Common mistakes
- Enabling BPDU Guard on a switch-to-switch port that should receive BPDUs.
- Re-enabling a port without removing the unexpected BPDU source.
Remove configuration — separate, potentially disruptive actions
Disable the global default
Removes the global guard policy; individual interface settings may still apply.
enable
configure terminal
no spanning-tree portfast bpduguard default
end
Recover a port after removing the cause
Briefly interrupts the interface; do not perform until the BPDU source is resolved.
enable
configure terminal
interface [INTERFACE]
shutdown
no shutdown
exit
end