Enabling BPDU Filtering

This topic identifies the command used to enable BPDU filtering.

Enabling and Verifying BPDU Filtering

r„.„„,„m

Switch(config)#spanning-tree portfast bpdufilter default

• Enables BPDU filtering

Switch#show spanning-tree summary totals

• Displays BPDU filtering configuration information

Switch#show spanning-tree summary totals Root bridge for:VLAN0010

EtherChannel misconfiguration guard is enabled Extended system ID is disabled Portfast is enabled by default PortFast BPDU Guard is disabled by default Portfast BPDU Filter is enabled by default Loopguard is disabled by default UplinkFast is disabled BackboneFast is disabled Pathcost method used is long

Name

Blocking Listening Learning Forwarding STP Active

2 vlans

0 0 0 3 3

© 2004, Cisco Systems, Inc. All rights reserve

d. BCMSN v2.1—4-49

PortFast BPDU filtering allows the administrator to prevent the system from sending or even receiving BPDUs on specified ports. When configured globally, PortFast BPDU filtering applies to all operational PortFast ports. Ports in an operational PortFast state are supposed to be connected to hosts that typically drop BPDUs. If an operational PortFast port receives a BPDU, it immediately loses its operational PortFast status. In that case, PortFast BPDU filtering is disabled on this port, and STP resumes sending BPDUs on this port.

PortFast BPDU filtering can also be configured on a per-port basis. When PortFast BPDU filtering is explicitly configured on a port, it does not send any BPDUs and drops all BPDUs it receives.

When you enable PortFast BPDU filtering globally and set the port configuration as the default for PortFast BPDU filtering, PortFast enables or disables PortFast BPDU filtering.

Caution Explicit configuration of PortFast BPDU filtering on a port that is not connected to a host can result in bridging loops. This is because the port ignores any incoming BPDU and changes its role to the forwarding state.

If the port configuration is not set to default, the PortFast configuration will not affect PortFast BPDU filtering. PortFast BPDU filtering allows access ports to move directly to the forwarding state as soon as the end hosts are connected. The table lists all the possible PortFast BPDU filtering combinations.

Per-Port Configuration

Global Configuration

PortFast State

PortFast BPDU Filtering State

Default

Enable

Enable

Enable

Default

Enable

Disable

Disable

Default

Disable

Not applicable

Disable

Disable

Not applicable

Not applicable

Disable

Enable

Not applicable

Not applicable

Enable

The port transmits at least ten BPDUs. If this port receives any BPDUs, PortFast and PortFast BPDU filtering are disabled.

To enable PortFast BPDU filtering globally on the switch, enter this command:

Switch(config)#spanning-tree portfast bpdufilter default To verify the configuration, enter this command:

Switch#show spanning-tree summary totals

Continue reading here: Enabling BPDU Skewing Detection

Was this article helpful?

+1 0