bridge spanning-tree portfast
Use this command to set the portfast BPDU (Bridge Protocol Data Unit) guard or filter for the bridge.
Use the
show spanning tree command to display administratively configured and currently running values of the BPDU filter parameter for the bridge and port (see
show spanning-tree).
Use the no parameter with this command to disable the BPDU filter for the bridge.
BPDU Filter
All ports that have their BPDU filter set to default take the same value of BPDU filter as that of the bridge. The Spanning Tree Protocol sends BPDUs from all ports. Enabling the BPDU Filter feature ensures that PortFast-enabled ports do not transmit or receive any BPDUs.
BPDU Guard
When the BPDU guard feature is set for a bridge, all portfast-enabled ports of the bridge that have the BPDU guard set to default shut down the port on receiving a BPDU. In this case, the BPDU is not processed. You can either bring the port back up manually by using the no shutdown command, or configure the errdisable-timeout feature to enable the port after the specified time interval.
Command Syntax
bridge <1-32> spanning-tree portfast bpdu-guard
bridge <1-32> spanning-tree portfast bpdu-filter
no bridge <1-32> spanning-tree portfast bpdu-guard
no bridge <1-32> spanning-tree portfast bpdu-filter
Parameters
<1-32>
Specify the bridge group ID.
bpdu-filter
Specify to filter the BPDUs on portfast enabled ports.
bpdu-guard
Specify to guard the portfast ports against BPDU receive.
Default
By default, portfast for STP is enabled
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#bridge 3 spanning-tree portfast bpdu-filter
#configure terminal
(config)#bridge 1 spanning-tree portfast bpdu-guard
Last modified date: 07/13/2023