vlans
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.0 for EX Series switches.
Options dot1q-tunneling, no-local-switching, and primary-vlan introduced in Junos OS Release 9.3 for EX Series switches.
Periods (.) in VLAN names introduced in Junos OS Release 9.4 for EX Series switches.
Option no-mac-learning introduced in Junos OS Release 9.5 for EX Series switches.
Option mapping introduced in Junos OS Release 9.6 for EX Series switches.
Option swap introduced in Junos OS Release 10.0 for EX Series switches.
Description
Configure VLAN properties on EX Series switches. The following configuration guidelines apply:
- Only private VLAN (PVLAN) firewall filters can be used when the VLAN is enabled for Q-in-Q tunneling.
- An S-VLAN tag is added to the packet if the VLAN is dot1q-tunneled and the packet is arriving from an access interface.
- You cannot use a firewall filter to assign a routed VLAN interface (RVI) to a VLAN.
- VLAN assignments performed using a firewall filter override all other VLAN assignments.
Default
If you use the default factory configuration, all switch interfaces become part of the VLAN default.
Options
vlan-name—Name of the VLAN. The name can contain letters, numbers, hyphens (-), and periods (.) and can be up to 255 characters long.
The remaining statements are explained separately.
Usage Guidelines
Required Privilege Level
routing—To view this statement in the configuration.
routing–control—To add this statement to the configuration.
Related Topics
- Configuring VLANs for EX Series Switches (CLI Procedure)
- Configuring VLANs for EX Series Switches (J-Web Procedure)
- Configuring Q-in-Q Tunneling (CLI Procedure)
- Creating a Series of Tagged VLANs (CLI Procedure)
- Configuring Routed VLAN Interfaces (CLI Procedure)
- Understanding Q-in-Q Tunneling on EX Series Switches
- Understanding Bridging and VLANs on EX Series Switches
