You can configure Rapid Spanning-Tree Protocol (RSTP) under the following hierarchy levels:
The routing instance type can be either virtual-switch or layer2-control.
To configure the Rapid Spanning-Tree Protocol:
(Optional) For compatibility with older bridges that do not support RSTP, you can run force RSTP to run as the original IEEE 802.1D Spanning-Tree Protocol (STP) version:
![]() | Note: If RSTP has been forced to run as the original STP version, you can revert back to RSTP by first removing the force-version statement from the configuration and then entering the clear spanning-tree protocol-migration configuration mode command. |
[edit ... protocols rstp]
user@host# set bpdu-destination-mac-address provider-bridge-group[edit ... protocols rstp]
user@host# set extended-system-id identifierConfigure the interfaces that participate in the RSTP instance.
[edit ... protocols rstp]
user@host# edit interface interface-name[edit ... protocols rstp interface interface-name]
user@host# set priority interface-priority[edit ... protocols rstp interface interface-name]
user@host# set cost interface-link-cost[edit ... protocols rstp interface interface-name]
user@host# set mode (p2p
| shared)Specify p2p if the link is point to point. Specify shared is the link is a shared media.
[edit ... protocols rstp interface interface-name]
user@host# set edgeEdge ports do not expect to receive bridge protocol data unit (BPDU) packets. If a BPDU packet is received for an edge port, the port becomes a nonedge port
[edit ... protocols rstp]
user@host# set bridge-priority bridge-priorityFor more information, see Bridge Priority for Election of Root Bridge and Designated Bridge.
Configure hello BPDU timers.
[edit ... protocols rstp]
user@host# set max-age seconds[edit ... protocols rstp]
user@host# set hello-time seconds[edit ... protocols rstp]
user@host# set forward-delay secondsVerify the RSTP configuration: