1137
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
OL-27880-02
Chapter P Commands
private-vlan association
Isolated and community VLANs can only be associated with one primary VLAN. You cannot configure
a VLAN that is already associated to a primary VLAN as a primary VLAN.
Examples
This example shows how to create a private VLAN relationship between the primary VLAN 14, the
isolated VLAN 19, and the community VLANs 20 and 21:
switch(config)#
vlan 19
switch(config-vlan)#
private-vlan isolated
switch(config)#
vlan 20
switch(config-vlan)#
private-vlan community
switch(config)#
vlan 21
switch(config-vlan)#
private-vlan community
switch(config)#
vlan 14
switch(config-vlan)#
private-vlan primary
switch(config-vlan)#
private-vlan association 19-21
This example shows how to remove isolated VLAN 18 and community VLAN 20 from the private VLAN
association:
switch(config)#
vlan 14
switch(config-vlan)#
private-vlan association remove 18,20
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.