Supported Platforms
Related Documentation
Configuring VSTP (CLI Procedure)
The default spanning-tree protocol for EX Series switches is Rapid Spanning Tree Protocol (RSTP). VLAN Spanning Tree Protocol (VSTP) is an alternate protocol that allows EX Series switches to run one or more Spanning Tree Protocol (STP) or RSTP instances for each VLAN on which VSTP is enabled. For networks with multiple VLANs, VSTP improves intelligent tree spanning by defining best paths within the VLANs instead of within the entire network.
![]() | Note: EX Series switches can have a maximum of 253 VLANs on VSTP. Therefore, to have as many spanning-tree protocol VLANs as possible, use both VSTP and RSTP. RSTP will then be applied to VLANs that exceed the limit for VSTP. Because RSTP is enabled by default, you just need to additionally enable VSTP. |
You can configure VSTP for an interface at the global level (for all configured VLANs) or for a specific VLAN.
- If you configure VSTP on an interface at both the global and the specific VLAN level, the interface configuration that is defined at the specific VLAN level overrides the interface configuration that is defined at the global level.
- If you specify VSTP to be configured on an interface that is not configured to belong to the VLAN (or VLANs), an error message is displayed.
- When you configure VSTP on a VLAN, all the interfaces
belonging to the VLAN are automatically included in the VSTP configuration.
Note: You should not try to enable VSTP on a specific interface within the VLAN unless you want to enable some additional attribute for that interface that is different than the attributes for all the other interfaces in the VLAN.
To configure VSTP:
- Configure VSTP on a group of VLANs, on all VLANs, or on
a specific VLAN, or a specific interface within a VLAN, or on a specific
interface that belongs to all VLANs:
- To enable VSTP on multiple VLANs using a VLAN group:
[edit protocols]
user@switch# set vstp vlan vlan-group group group-name vlan vlan-id-rangeNote: EX Series switches can have a maximum of 253 VLANs on VSTP.
- To enable VSTP on all 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.
[edit protocols]
user@switch# set vstp vlan allNote: EX Series switches can have a maximum of 253 VLANs on VSTP. RSTP will then be applied to VLANs that exceed the limit for VSTP. Be sure that RSTP is also enabled (the default setting) when you use the command set vstp vlan all. In addition to this being a recommended practice, your configuration will not commit if VSTP is enabled on a switch with more than 253 VLANs.
- To enable VSTP on a VLAN using a single VLAN ID:
[edit protocols]
user@switch# set vstp vlan vlan-id - To enable VSTP on a VLAN using a single VLAN name:
[edit protocols]
user@switch# set vstp vlan vlan-name
- To enable VSTP on multiple VLANs using a VLAN group:
- (Optional) Enable the Address Resolution Protocol (ARP)
for faster MAC address recovery only If a routed VLAN interface (RVI)
is configured:
- To enable ARP for a specific VSTP interface that belongs
to a specific VLAN:
[edit protocols]
user@switch# set vstp vlan vlan-name interface interface-name arp-on-stp
- To enable ARP for a specific VSTP interface that belongs
to a specific VLAN: