Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents

primary-vlan

date_range 09-Dec-23

Syntax

content_copy zoom_out_map
primary-vlan vlan-name; 

Hierarchy Level

content_copy zoom_out_map
[edit vlans vlan-name]

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.

Release Information

Statement introduced in Junos OS Release 9.3.

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

footer-navigation