Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

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.

To configure VSTP:

  1. 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-group group group-name vlan vlan-id-range

      Note: 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 all

      Note: 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 an interface at the global level:
      [edit protocols]
      user@switch# set vstp vlan all interface interface-name

      Caution: Ensure that the interface is a member of all VLANs before you add the interface to the VSTP configuration. If the interface is not a member of all VLANs, this VSTP configuration will fail when you try to commit it.

    • To enable VSTP on an interface for a specific VLAN:
      [edit protocols]
      user@switch# set vstp vlan vlan-id-or-vlan-name interface interface-name

      Caution: Ensure that the interface is a member of the specified VLAN before you add the interface to the VSTP configuration. If the interface is not a member of the specified VLAN, this VSTP configuration will fail when you try to commit it.

  2. (Optional) Enable the Address Resolution Protocol (ARP) for faster MAC address recovery only If a routed VLAN interface (RVI) is configured:
    • To enable ARP on VSTP for all VLANs:
      [edit protocols]
      user@switch# set vstp vlan all arp-on-stp
    • To enable ARP on VSTP on a VLAN using a single VLAN ID:
      [edit protocols]
      user@switch# set vstp vlan vlan-id arp-on-stp
    • To enable ARP on VSTP on a VLAN using a single VLAN name:
      [edit protocols]
      user@switch# set vstp vlan vlan-name arp-on-stp

Published: 2013-02-19