Supported Platforms
Understanding VSTP for EX Series Switches
Juniper Networks EX Series Ethernet Switches provide Layer 2 loop prevention through Spanning Tree Protocol (STP), Rapid Spanning Tree Protocol (RSTP), Multiple Spanning Tree Protocol (MSTP), and VLAN Spanning Tree Protocol (VSTP). The default factory configuration for EX Series switches uses RSTP. If you use VLANs, however, we recommend that you enable MSTP unless your network requires the device compatibility provided by VSTP. Switches configured to run VSTP automatically assign each VLAN to one spanning-tree instance that runs RSTP. While this approach is useful to optimize network usage in small networks with a limited number of VLANs, a VSTP configuration in a network with several hundred VLANs can overload switch CPUs. MSTP ensures that your network is not slowed down by the increased network traffic caused by hundreds of VLANs, each with its own spanning-tree instance.
When using VSTP, you can selectively configure up to 253 VLANs per switch—additional VLANs use RSTP. (VSTP and RSTP are the only spanning-tree protocols that can be configured concurrently on a switch.)
![]() | Note: When you configure VSTP, we recommend that you enable VSTP on all VLANs that can receive VSTP bridge protocol data units (BPDUs). |
![]() | Note: When you configure VSTP with the set protocol vstp vlan all command, VLAN ID 1 is not set; it is excluded so that the configuration is compatible with Cisco PVST+. If you want VLAN ID 1 to be included in the VSTP configuration on your switch, you must set it separately with the set protocol vstp vlan 1 command. |
Selecting a Spanning-Tree Protocol
The default factory configuration for EX Series switches is RSTP, a faster version of STP. To determine which spanning-tree protocol is best for your situation, see Table 1.
Table 1: Selecting a Spanning-Tree Protocol
Protocol | Advantages | Disadvantages |
---|---|---|
RSTP |
|
|
STP |
|
|
MSTP |
|
|
VSTP |
|
|