Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)
The private VLAN commands do not appear until you enable the private VLAN feature.Note
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Enables the private VLAN feature on the switch.switch(config)# feature private-vlan
Step 2
(Optional)
Disables the private VLAN feature on the switch.
switch(config)# no feature
private-vlan
Step 3
You cannot disable private VLANs if there
are operational ports on the switch that are in
private VLAN mode.
Note
This example shows how to enable the private VLAN feature on the switch:
switch# configure terminal
switch(config)# feature private-vlan
Configuring a VLAN as a Private VLAN
To create a private VLAN, you first create a VLAN, and then configure that VLAN to be a private VLAN.
Before You Begin
Ensure that the private VLAN feature is enabled.
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Places you into the VLAN configuration submode.
switch(config)# vlan {vlan-id |
vlan-range}
Step 2
Configures the VLAN as either a community, isolated,
or primary private VLAN. In a private VLAN, you must
switch(config-vlan)# private-vlan
{community | isolated | primary}
Step 3
have one primary VLAN. You can have multiple
community and isolated VLANs.
(Optional)
Removes the private VLAN configuration from the
specified VLAN(s) and returns it to normal VLAN mode.
switch(config-vlan)# no private-vlan
{community | isolated | primary}
Step 4
If you delete either the primary or secondary VLAN, the
ports that are associated with the VLAN become inactive.
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01 93
Configuring a Private VLAN
Configuring a VLAN as a Private VLAN