Switching (VLAN/STP)

spanning-tree bpduguard enable

Shut the port down if it receives a BPDU — protects PortFast ports.

Works on: SwitchMode: iface
Watch out

Configuration-only in this lab: no device here sends rogue BPDUs, so the port is never err-disabled by it. It stays in running-config so real configs round-trip. Port-security IS enforced if you need a port that really shuts.

Run this command live

Don't just read it — type spanning-tree bpduguard enable in a real network simulator in your browser and watch it take effect. No install, no account needed to start.

Open the lab

Frequently asked

What does the "spanning-tree bpduguard enable" command do?

Shut the port down if it receives a BPDU — protects PortFast ports.

What's the common gotcha with "spanning-tree bpduguard enable"?

Configuration-only in this lab: no device here sends rogue BPDUs, so the port is never err-disabled by it. It stays in running-config so real configs round-trip. Port-security IS enforced if you need a port that really shuts.

More Switching (VLAN/STP) commands

← Back to the full command reference

spanning-tree bpduguard enable — network CLI command reference · NetForge-AI