PVST+ & RPVST+ configuration

spanning-tree mode {pvst | rapid-pvst}

##Bridge priority##
spanning-tree vlan 1-4094 priority 32768

##STP Timers, in seconds##
spanning-tree vlan 1-4094 hello-time 2
spanning-tree vlan 1-4094 forward-time 15
spanning-tree vlan 1-4094 max-age 20

##PVST+ Enhancements##
spanning-tree backbonefast
spanning-tree uplinkfast

##Interface attributes ##
interface FastEthernet0/1
spanning-tree [vlan 1-4094] port-priority 128
spanning-tree [vlan 1-4094] cost 19

##Manual link type specification##
spanning-tree link-type {point-to-point | shared}

## Enables PortFast if running PVST+, or ##
## designates an edge port under RPVST+ ##
spanning-tree portfast

##Spanning tree protection##
spanning-tree guard {loop | root | none}

##Per-interface toggling ##
spanning-tree bpduguard enable
spanning-tree bpdufilter enable