Spanning Tree Portfast Configuration Options

To configure STP Portfast on a Cisco device running STP, there are two approaches.

Global

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 }

Interface

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.