Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

vlan (Spanning Trees)

Syntax

vlan (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

[edit protocols mstp msti msti-id][edit protocols vstp]

Release Information

Statement introduced in Junos OS Release 9.0 for EX Series switches.

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

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.

Default

Not enabled.

Options

vlan-id—Numeric VLAN identifier.

vlan-name—Name of the VLAN.

The remaining statements are explained separately.

Required Privilege Level

routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.

Published: 2012-12-07