STP configuring portfast

To configure STP PortFast on a Cisco device running STP, there are two approaches:

The spanning-tree portfast edge command can be applied either globally or on an interface.
When applied globally, the syntax is as follows:

spanning-tree portfast edge { bpdufilter default | bpduguard default | default }

When applied on an interface, the syntax is like so:

spanning-tree portfast edge [ disable | trunk ]

The interface configuration always overrides the global configuration. If no such command appears in the interface configuration, then the global configuration takes effect.

Links:

https://forum.networklessons.com/t/rapid-spanning-tree-configuration/1139/23?u=lagapides

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960/software/release/15-2_4_e/command/reference/cr_2960/cli3.html#pgfId-1946892

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960/software/release/15-2_4_e/command/reference/cr_2960/cli3.html#pgfId-1946989

Links to this page: