Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

primary-vlan

 

Syntax

Hierarchy Level

Release Information

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

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

Statement introduced in Junos OS Release 12.1 for the QFX Series.

Description

For a private VLAN (PVLAN), configure the primary VLAN. The primary VLAN is always tagged.

  • If the PVLAN is configured on a single switch, do not assign a tag to the community VLANs.

  • If the PVLAN is configured to span multiple switches, you must assign tags to the community VLANs also.

For a community VLAN, configure the primary VLAN. The primary VLAN must be tagged, and the community VLAN must be untagged.

If you want to create a community VLAN, you must configure the primary VLAN to be private using the pvlan statement.

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.

Required Privilege Level

system—To view this statement in the configuration.

system–control—To add this statement to the configuration.

routing—To view this statement in the configuration.

routing–control—To add this statement to the configuration.