Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

vlan (MSTP)

date_range 03-May-24

Syntax

content_copy zoom_out_map
vlan vlan-id;

EX Series

content_copy zoom_out_map
vlan (all | vlan-id | vlan-name) {
     bridge-priority priority;
     forward-delay seconds;
     hello-time seconds;
     interface interface-name {
         bpdu-timeout-action {
             block;
             log;
        }
         cost  cost;
         disable;
         edge;
         mode mode;
         no-root-port;
         priority priority;
    }
     max-age seconds;
     traceoptions {
        file filename <files number > <size size> <no-stamp | world-readable | no-world-readable>;
        flag flag;
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit logical-systems logical-system-name protocols mstp msti msti-id],
[edit logical-systems logical-system-name routing-instances routing-instance-name protocols mstp msti msti-id]
content_copy zoom_out_map
[edit protocols mstp msti msti-id],
[edit protocols mstp msti msti-id]
[edit protocols vstp]
content_copy zoom_out_map
[edit routing-instances routing-instance-name protocols mstp msti msti-id]

Description

Configure the VLANs for a Multiple Spanning Tree Instance (MSTI) or VSTP instance.

Note:

When you configure VSTP with the set prototocol vstp vlan all command, vlan-id 1 is excluded to be compatible with Cisco PVST+. If you want vlan-id 1 to be included in VSTP, you must set it separately with the set protocol vstp vlan 1 command.

Tip:

To display a list of all configured VLANs on the system, including VLANs that are configured but not committed, type ? after vlan or vlans in your configuration mode command line. Note that only one VLAN is displayed for a VLAN range.

Options

vlan-name—Name of the VLAN.

vlan-id—The VLAN identifier associated with the MSTI.

vlan-id-range—Range of VLAN identifiers associated with the MSTI in the form minimum-vlan-id-maximum-vlan-id. VLAN identifier ranges are not supported for VSTP.

  • Range: 1 through 4096

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

Statement updated with enhanced ? (CLI completion feature) functionality in Junos OS Release 9.5 for EX Series switches.

Support for logical systems added in Junos OS Release 9.6.

external-footer-nav