rstp
MX Series
rstp { bpdu-block-on-edge; bpdu-destination-mac-address provider-bridge-group; bridge-priority priority; extended-system-id; force-version stp; forward-delay seconds; hello-time seconds; max-age seconds; interface interface-name { bpdu-timeout-action { alarm; block; } cost cost; edge; mode (p2p | shared); no-root-port; priority interface-priority; } priority-hold-time seconds; traceoptions { file filename <files number> <size size> <world-readable | no-world-readable>; flag flag <flag-modifier> <disable>; } }
EX Series
rstp { bpdu-block-on-edge; bridge-priority priority; priority; disable; forward-delay seconds; hello-time seconds; interface (all | interface-name) { arp-on-stp; bpdu-timeout-action { block; log; } cost cost; edge; mode mode; no-root-port; priority priority; } max-age seconds; traceoptions { file filename <files number > <size size> <no-stamp | no-world-readable | world-readable>; flag flag; } }
ELS Versions: EX Series, QFX Series, NFX Series
rstp { bpdu-block-on-edge; bpdu-destination-mac-address provider-bridge-group; bridge-priority priority; disable; extended-system-id; force-version stp; forward-delay seconds; hello-time seconds; max-age seconds; priority-hold-time seconds; traceoptions { file filename <files number> <size size> <world-readable | no-world-readable>; flag flag <flag-modifier> <disable>; } }
Hierarchy Level
[edit logical-systems logical-system-name protocols], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols],
[edit protocols],
[edit routing-instances routing-instance-name protocols]
Description
Configure Rapid Spanning Tree Protocol (RSTP). RSTP is defined in the IEEE 802.1D-2004 specification and is used to prevent loops in Layer 2 networks, which results in shorter convergence times than those provided by basic Spanning Tree Protocol (STP).
VSTP and RSTP can be configured concurrently. You can selectively configure up to 253 VLANs using VSTP; the remaining VLANs will be configured using RSTP. VSTP and RSTP are the only spanning-tree protocols that can be configured concurrently on the switch.
Configure RSTP when you configure VSTP. RSTP overhead is minimal and this configuration ensures that a spanning-tree protocol is running on all VLANs on your switch, even when your switch is supporting more than 253 VLANs.
The remaining statements are explained separately. See CLI Explorer.
Default
RSTP is enabled on all Ethernet switching interfaces.
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 8.4.
bpdu-block-on-edge
statement added in Junos OS Release 9.4.
bpdu-timeout-action
statement added in Junos OS Release 9.4.
Support for logic systems added in Junos OS Release 9.6.
Statement updated in Junos OS Release 15.1 for EX Series and QFX Series switches to support configuration of spanning tree parameters globally on all interfaces.
You cannot disable spanning tree parameters globally on all interfaces.