Switching (VLAN/STP)

spanning-tree portfast

Skip listening/learning on this port — only safe for end-host ports.

Works on: SwitchMode: iface
Watch out

Pair with 'spanning-tree bpduguard enable' so a rogue switch doesn't kill your STP topology.

Run this command live

Don't just read it — type spanning-tree portfast 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 portfast" command do?

Skip listening/learning on this port — only safe for end-host ports.

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

Pair with 'spanning-tree bpduguard enable' so a rogue switch doesn't kill your STP topology.

More Switching (VLAN/STP) commands

← Back to the full command reference

spanning-tree portfast — network CLI command reference · NetForge-AI