Supported Platforms
Related Documentation
- EX Series
- Understanding STP for EX Series Switches
- Understanding RSTP for EX Series Switches
- Understanding MSTP for EX Series Switches
- Understanding Layer 2 Protocol Tunneling on EX Series Switches
- Configuring VSTP (CLI Procedure)
- EX, MX Series, QFX Series standalone switches
- Configuring VLAN Spanning-Tree Protocol
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.
VSTP and RSTP are the only spanning-tree protocols that can be configured concurrently on a switch. The maximum number of VLANs that can be supported by VSTP depends upon whether you are using Junos OS for EX Series and QFX Series switches with support for the Enhanced Layer 2 Software (ELS) configuration style or Junos OS that does not support ELS. For ELS details, see Getting Started with Enhanced Layer 2 Software.
VSTP Guidelines and Configuration Constraints
When you configure VSTP, note the following guidelines and constraints:
- The number of VLANs supported depends on the specific
switch platform:
- On EX Series (other than EX9200) and QFX switches running Junos OS that supports ELS—VSTP can support up to 510 VLANs.
- On EX9200 switches—VSTP can support up to 4000 VLANs.
- On EX Series switches running Junos OS that does not support ELS—VSTP can support up to 253 VLANs.
- We recommend that you enable VSTP on all VLANs that can receive VSTP bridge protocol data units (BPDUs).
- If a VLAN is configured for VSTP/MSTP, all the interfaces belonging to that VLAN must also be explicitly configured for VSTP/MSTP.
- The vlan all option is supported on EX Series and QFX Series that run Junos OS without ELS.
- 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.
- You cannot configure VSTP on logical interfaces that have:
- VLAN translations
- VLAN range statement
- Dual VLAN tags
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 |
|
|
Related Documentation
- EX Series
- Understanding STP for EX Series Switches
- Understanding RSTP for EX Series Switches
- Understanding MSTP for EX Series Switches
- Understanding Layer 2 Protocol Tunneling on EX Series Switches
- Configuring VSTP (CLI Procedure)
- EX, MX Series, QFX Series standalone switches
- Configuring VLAN Spanning-Tree Protocol
Modified: 2016-03-15
Supported Platforms
Related Documentation
- EX Series
- Understanding STP for EX Series Switches
- Understanding RSTP for EX Series Switches
- Understanding MSTP for EX Series Switches
- Understanding Layer 2 Protocol Tunneling on EX Series Switches
- Configuring VSTP (CLI Procedure)
- EX, MX Series, QFX Series standalone switches
- Configuring VLAN Spanning-Tree Protocol