1135
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
OL-27880-02
Chapter P Commands
private-vlan
A community VLAN is defined as the VLAN that carries the traffic among community ports and from
community ports to the promiscuous ports on the corresponding primary VLAN.
A primary VLAN is defined as the VLAN that is used to convey the traffic from the routers to customer
end stations on private ports.
Multiple community and isolated VLANs are allowed. If you enter a range of primary VLANs, the
system uses the first number in the range for the association.
If VLAN Trunking Protocol (VTP) is enabled on a switch, you can configure private VLANs only on a
device configured in Transparent mode.
Examples This example shows how to assign VLAN 5 to a private VLAN as the primary VLAN:
switch# configure terminal
switch(config)# vlan 5
switch(config-vlan)# private-vlan primary
This example shows how to assign VLAN 100 to a private VLAN as a community VLAN:
switch# configure terminal
switch(config)# vlan 100
switch(config-vlan)# private-vlan community
This example shows how to assign VLAN 109 to a private VLAN as an isolated VLAN:
switch# configure terminal
switch(config)# vlan 109
switch(config-vlan)# private-vlan isolated
Related Commands Command Description
feature private-vlan Enables private VLANs.
show vlan Displays information about VLANs.
show vlan private-vlan Displays information about private VLANs.