There are two seperate ways to configure it:
– globally: (config)#spanning-tree portfast bpdufilter default
+ enables BPDU filter on all portfast interfaces
+ kicks them out of portfast if they receive a BPDU
– per portfast interface: (config-if)#spanning-tree bpdufilter enable
+ effectively disables STP on the port. This may lead to switching loops since switches won’t detect redundant links between them.