vstp
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.4 for EX Series switches.
Description
Configure VLAN Spanning Tree Protocol (VSTP). VSTP is used to prevent loops in Layer 2 networks on a per-VLAN basis.
You cannot commit a configuration that uses VSTP on more than 253 VLANs. If there are more than 253 VLANs on your switch, you must use the vlan statement to specify which VLANs or VLAN groups should use VSTP, and the total number of VLANs using VSTP cannot exceed 253. You also cannot use the vlan all option to configure VSTP when your switch has more than 253 VLANs. Run RSTP with VSTP in networks with large numbers of VLANs to ensure all VLANs are running a spanning-tree protocol.
![]() | Best Practice: 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.
Default
VSTP is not enabled by default.
Required Privilege Level
routing—To view this statement in the
configuration.
routing-control—To add this statement
to the configuration.

