Supported Platforms
Related Documentation
- EX Series
- Configuring BPDU Protection on an Interface (CLI Procedure)
- Example: Configuring BPDU Protection on Edge Interfaces to Prevent STP Miscalculations on EX Series Switches
- Example: Configuring BPDU Protection on Interfaces to Prevent STP Miscalculations on EX Series Switches
- Example: Configuring BPDU Protection on Edge Interfaces to Prevent STP Miscalculations on EX Series Switches
- Example: Configuring BPDU Protection on Interfaces to Prevent STP Miscalculations on EX Series Switches
- Understanding Loop Protection for STP, RSTP, VSTP, and MSTP on EX Series Switches
- Understanding Root Protection for STP, RSTP, VSTP, and MSTP on EX Series Switches
- Understanding STP for EX Series Switches
Understanding BPDU Protection for STP, RSTP, and MSTP on EX Series Switches
Networks frequently use multiple protocols simultaneously to achieve different goals and in some cases those protocols might conflict with each other. One such case is when spanning-tree protocols are active on the network, where a special type of switching frame called a bridge protocol data unit (BPDU) can conflict with BPDUs generated on other devices such as PCs. The different kinds of BPDUs are not compatible but they can still be recognized by other devices that use BPDUs and cause network outages. You need to protect any device that recognizes BPDUs from picking up incompatible BPDUs.
Different Kinds of BPDUs
Spanning-tree protocols such as Spanning Tree Protocol (STP), Rapid Spanning Tree Protocol (RSTP), VLAN Spanning Tree Protocol (VSTP), and Multiple Spanning Tree Protocol (MSTP) generate their own BPDUs. These peer STP applications use their BPDUs to communicate, and ultimately, the exchange of BPDUs determines which interfaces block traffic and which interfaces become root ports and forward traffic.
User bridge applications running on a PC can also generate BPDUs. If these BPDUs are picked up by STP applications running on the switch, they can trigger STP miscalculations, and those miscalculations can lead to network outages. Similarly, BPDUs generated by STP protocols can cause problems if they are picked up by devices like PCs that are not using STP. Some mechanism for BPDU protection must be implemented in these cases.
Protecting Switches From Incompatible BPDUs
To protect the state of spanning-tree protocols on switches from outside BPDUs, enable BPDU protection on the interfaces of a switch on which spanning-tree protocols are configured and are connected to user devices (such as PCs)—for example, on edge ports connected to PCs. Use the same strategy when a device on which STP is not configured is connected to a switch through a trunk interface that forwards BPDUs generated by spanning-tree protocols. In this case, you protect the device from BPDUs generated by the STP on the switch.
To prevent a switch from forwarding BPDUs generated by spanning-tree protocols to a device, you can enable bpdu-block on an interface.
- On Juniper Networks EX Series Ethernet Switches that run Juniper Networks Junos operating system (Junos OS) that supports the Enhanced Layer 2 Software (ELS) configuration style, enable bpdu-block at the [edit protocols layer2-control ] hierarchy level. To clear the BPDU error, use clear error bpdu interface.
- On EX Series switches that run Junos OS that does not support the ELS configuration style, enable bpdu-block at the [edit ethernet-switching-options] hierarchy level. To clear the BPDU error, use clear ethernet-switching bpdu-error
When an interface configured with BPDU protection encounters an incompatible BPDU, it drops that BPDU and then, either shuts down or continues to receive packets other than spanning-tree protocol BPDUs depending on the configuration defined in the bpdu-block statement. If the interface continues to be open after dropping all incompatible BPDUs, all packets except incompatible BPDUs continue to ingress and egress through the interface.
If the interface shuts down after dropping all BPDUs, you can re-enable the interface as follows:
- On Juniper Networks EX Series switches runningJuniper
Networks Junos operating system (Junos OS) that supports the Enhanced
Layer 2 Software (ELS) configuration style:
- Include the disable-timeout statement at the [edit protocols layer2-control bpdu-block] hierarchy level to enable the interfaces to automatically return to service when the specified timer expires.
- Issue the operational mode command clear error bpdu interface on the switch.
- On EX Series switches running Junos OS that does not support
the ELS configuration style:
- Include the disable-timeout statement at the [edit ethernet-switching-options bpdu-block] hierarchy level to enable the interfaces to automatically return to service when the specified timer expires.
- Issue the operational mode command clear ethernet-switching bpdu-error on the switch.
Related Documentation
- EX Series
- Configuring BPDU Protection on an Interface (CLI Procedure)
- Example: Configuring BPDU Protection on Edge Interfaces to Prevent STP Miscalculations on EX Series Switches
- Example: Configuring BPDU Protection on Interfaces to Prevent STP Miscalculations on EX Series Switches
- Example: Configuring BPDU Protection on Edge Interfaces to Prevent STP Miscalculations on EX Series Switches
- Example: Configuring BPDU Protection on Interfaces to Prevent STP Miscalculations on EX Series Switches
- Understanding Loop Protection for STP, RSTP, VSTP, and MSTP on EX Series Switches
- Understanding Root Protection for STP, RSTP, VSTP, and MSTP on EX Series Switches
- Understanding STP for EX Series Switches
Published: 2015-04-08
Supported Platforms
Related Documentation
- EX Series
- Configuring BPDU Protection on an Interface (CLI Procedure)
- Example: Configuring BPDU Protection on Edge Interfaces to Prevent STP Miscalculations on EX Series Switches
- Example: Configuring BPDU Protection on Interfaces to Prevent STP Miscalculations on EX Series Switches
- Example: Configuring BPDU Protection on Edge Interfaces to Prevent STP Miscalculations on EX Series Switches
- Example: Configuring BPDU Protection on Interfaces to Prevent STP Miscalculations on EX Series Switches
- Understanding Loop Protection for STP, RSTP, VSTP, and MSTP on EX Series Switches
- Understanding Root Protection for STP, RSTP, VSTP, and MSTP on EX Series Switches
- Understanding STP for EX Series Switches