Configuring Private VLANs Using NX-OS
Command or Action
Option
no private-vlan
{community | isolated
| primary}
Example:
switch(config-vlan)# private-vlan primary
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 assign VLAN 5 to a private VLAN as the primary VLAN:
switch# config t
switch(config)# vlan 5
switch(config-vlan)# private-vlan primary
switch(config-vlan)# exit
switch(config)#
Associating Secondary VLANs with a Primary Private VLAN
Follow these guidelines when you associate secondary VLANs with a primary VLAN:
• The secondary-vlan-list parameter cannot contain spaces. It can contain multiple comma-separated items.
• The secondary-vlan-list parameter can contain multiple community and isolated VLAN IDs.
• Enter a secondary-vlan-list or enter the add keyword with a secondary-vlan-list to associate secondary
• Enter the remove keyword with a secondary-vlan-list to clear the association between secondary VLANs
Description
Removes the private VLAN configuration from
the specified VLAN(s) and returns it to normal
VLAN mode. If you delete either the primary or
secondary VLAN, the ports that are associated
with the VLAN become inactive.
Each item can be a single secondary VLAN ID or a hyphenated range of secondary VLAN IDs.
VLANs with a primary VLAN.
and a primary VLAN.
Cisco Nexus 7000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.x
Associating Secondary VLANs with a Primary Private VLAN
Purpose
Exits VLAN configuration submode.
(Optional)
Displays the private VLAN
configuration.
(Optional)
Copies the running configuration to the
startup configuration.
67