Configuring Private VLANs Using NX-OS
Command or Action
Option
no private-vlan association
Example:
switch(config-vlan)# private-vlan association 100-105,109
Step 4
exit
Example:
switch(config-vlan)# exit
switch(config)#
Step 5
show vlan private-vlan [type]
Example:
switch# show vlan private-vlan
Step 6
copy running-config startup-config
Example:
switch(config)# copy running-config startup-config
This example shows how to associate community VLANs 100 through 105 and isolated VLAN 109 with
primary VLAN 5:
switch(config)# vlan 5
switch(config-vlan)# private-vlan association 100-105, 109
switch(config-vlan)# exit
switch(config)#
Mapping Secondary VLANs to the VLAN Interface of a Primary VLAN
Note
See the Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide for information on assigning IP
addresses to VLAN interfaces on primary VLANs of private VLANs.
You map secondary VLANs to the VLAN interface of a primary VLAN. Isolated and community VLANs
are both called secondary VLANs. To allow Layer 3 processing of private VLAN ingress traffic, you map
secondary VLANs to the VLAN network interface of a primary VLAN.
Mapping Secondary VLANs to the VLAN Interface of a Primary VLAN
Description
Removes all associations from the
primary VLAN and returns it to
normal VLAN mode.
Cisco Nexus 7000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.x
Purpose
Exits VLAN configuration submode.
(Optional)
Displays the private VLAN configuration.
(Optional)
Copies the running configuration to the startup
configuration.
69