Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

vstp

MX Series

EX Series, QFX Series, QFabric

ELS versions: EX Series, QFX Series, NFX Series

Hierarchy Level

Description

Configures VLAN Spanning Tree Protocol (VSTP). VSTP is used to prevent loops in Layer 2 networks on a per-VLAN basis.

You can have a maximum of 253 VSTP VLANs per switch.

If the number of VLANs on your switch exceeds the VSTP VLAN limit, you must use the vlan statement to specify which VLANs or VLAN groups use VSTP. You also cannot use the vlan all option to configure VSTP when your switch has more than the maximum allowed VSTP VLANs. To ensure all VLANs are running a spanning-tree protocol, run RSTP for networks with large numbers of VLANs .

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.

Note:

Option vlan all is not supported in Junos OS Release 13.2X50.

Best Practice:

Configure RSTP when you configure VSTP. RSTP overhead is minimal and this configuration ensures that some spanning tree protocol is running on all VLANs on your switch, even when your switch has more than the maximum number of allowed VSTP VLANs.

The remaining statements are explained separately. See CLI Explorer.

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.

Release Information

Statement introduced in Junos OS Release 9.0.

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 logical systems added in Junos OS Release 9.6.

Statement updated in Junos OS Release 15.1 for EX Series switches to support configuration of spanning tree parameters globally on all interfaces.

Note:

You cannot disable spanning tree parameters globally on all interfaces.