Creating a Private VLAN (CLI Procedure)
The private VLAN (PVLAN) feature on EX-series switches allows an administrator to split a broadcast domain into multiple isolated broadcast subdomains, essentially putting a VLAN inside a VLAN.
Before you begin, make sure you set up your VLANs. See Configuring VLANs for EX-series Switches (CLI Procedure) or Configuring VLANs for EX-series Switches (J-Web Procedure).
To configure private VLANS:
- Set the primary VLAN to have no local switching:
Note: The primary VLAN must be a tagged VLAN.
[edit vlans]
user@switch# set primary-vlan-name no-local-switching - For each community VLAN, configure access interfaces:
Note: The secondary VLANs must be untagged VLANs.
[edit vlans]
user@switch# set community-vlan-name interface ge-chassis/slot/port - For each community VLAN, set the primary VLAN:
[edit vlans]
user@switch# set community-vlan-name primary-vlan primary-vlan-name - For each isolated VLAN, add the interface to the
primary VLAN:
[edit vlans]
user@switch# set primary-vlan-name interface ge-chassis/slot/port