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. 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.

By default, the chassis MAC address is advertised as the bridge address in the BPDU. If you want to change the bridge address advertised in the BPDU, you must configure the system identifier by using the system-identifier option.

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.

system-identifier statement added in Junos OS Release 11.3.

Note:

You cannot disable spanning tree parameters globally on all interfaces.