Layer 2 Switching Commands 761spanning-tree portfast bpdufilter defaultThe spanning-tree portfast bpdufilter default command disables thetransmission and reception of BPDUs on portfast enabled ports. Use the “no”form of the command to enable the transmission and receipt of BPDUs.Syntaxspanning-tree portfast bpdufilter defaultno spanning-tree portfast bpdufilter defaultDefault ConfigurationThis feature is disabled by default.Command ModeGlobal Configuration mode, Interface Configuration mode (physicalinterface and port-channels)User GuidelinesBPDU filtering disables both the sending and receiving of BPDUs on portfastenabled ports.A port enabled for BPDU filtering does not receive or send any BPDUs. It ispossible that a network loop may result if BPDU filtering is enabled on a portconnected to anything other than an end system.BPDU filtering is appropriate for configuration on portfast enabled interfacesthat are connected to end system hosts where it is desired to not send BPDUsto the host or receive BPDUs from the host. Use the BPDU guard capability ifit is desired to obtain a greater level of protection from rogue hosts or possiblespanning-tree loops.The administrator must ensure that interfaces enabled for BPDU filtering areconfigured as edge ports. Use the spanning-tree portfast command toconfigure the interface as an edge port.ExampleThe following example discards BPDUs received on spanning-tree ports inportfast mode.