The private VLAN (PVLAN) feature on Juniper Networks EX Series Ethernet Switches allows an administrator to split a broadcast domain into multiple isolated broadcast subdomains, essentially putting a VLAN inside a VLAN. A PVLAN consists of a primary VLAN with other VLANs nested inside it as secondary VLANs. Just like regular VLANs, PVLANs are isolated on Layer 2 and require that a Layer 3 device be used to route traffic among them. PVLANs are useful for restricting the flow of broadcast and unknown unicast traffic and for limiting the communication between known hosts.
A PVLAN can be created on a single switch or can be configured to span multiple switches.
![]() | Note: You can configure the PVLAN to span different lines of supported switches. See the EX Series Switch Software Features Overview for a list of switches that support this feature. |
![]() | Note: Configuring a voice over IP (VoIP) VLAN on PVLAN interfaces is not supported. |
This topic explains the following concepts regarding PVLANs on EX Series switches:
A PVLAN is designated the primary VLAN, and other VLANs are nested inside that VLAN as secondary VLANs. The types of PVLAN broadcast domains are:
The primary VLAN of the PVLAN must be associated with an 802.1Q tag regardless of whether the PVLAN is configured on a single switch or is configured to span multiple switches. However, you do not need 802.1Q tags for secondary VLANs when a PVLAN is configured on a single switch.
When a PVLAN spans multiple switches:
Figure 1 shows a PVLAN spanning multiple switches, where the primary VLAN (100) contains two community domains (300 and 400) and one inter-switch isolated domain.
Figure 1: PVLAN Spanning Multiple Switches

PVLANs can have the following types of switch ports:
The membership of the PVLAN trunk port in the inter-switch isolated VLAN is “egress-only”. Incoming traffic on the PVLAN trunk port will never get assigned to the inter-switch isolated VLAN. The communication between a PVLAN trunk port and an isolated port is unidirectional. An isolated port can forward packets to a PVLAN trunk port, but a PVLAN trunk port cannot forward packets to an isolated port.
Table 1 summarizes the Layer 2 connectivity between the different types of ports.
Table 1: PVLAN Ports and Layer 2 Connectivity
Port Mode | Promiscuous Port | Community Port | Isolated Port | PVLAN Trunk Port |
|---|---|---|---|---|
Promiscuous Port | Can communicate. | Can communicate. | Can communicate. | Can communicate. |
Community Port | Can communicate. | Can communicate within the same community. | Cannot communicate. | Can communicate. |
Isolated Port | Can communicate. | Cannot communicate. | Cannot communicate. | Can communicate. Note: This communication is unidirectional. |
PVLAN Trunk Port | Can communicate. | Can communicate within the same community. | Cannot communicate. | Can communicate. |
![]() | Note: If you enable no-mac-learning on a primary VLAN, all isolated VLANs (or the inter-switch isolated VLAN) in the PVLAN inherit that setting. However, if you want to disable MAC address learning on any of the community VLANs, you must configure no-mac-learning on each of those VLANs. |
PVLANs provide IP address conservation and efficient allocation of IP addresses. In a typical network, VLANs usually correspond to a single IP subnet. In private VLANs, the hosts in all the secondary VLANs still belong to the same IP subnet as the subnet allocated to the primary VLAN. Hosts within the secondary VLAN are numbered based on IP subnets associated with the primary VLAN, and their IP subnet masking information reflects that of the primary VLAN subnet.