user manual

Table Of Contents
Configuring a VLAN as a Private VLAN
To create a PVLAN, you first create a VLAN, and then configure that VLAN to be a PVLAN.
Before You Begin
Ensure that the PVLAN 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 PVLAN. In a PVLAN, you must have one
switch(config-vlan)# private-vlan
{community | isolated | primary}
Step 3
primary VLAN. You can have multiple community and
isolated VLANs.
(Optional)
Removes the PVLAN configuration from the specified
VLAN(s) and returns it to normal VLAN mode. If you
switch(config-vlan)# no private-vlan
{community | isolated | primary}
Step 4
delete either the primary or secondary VLAN, the ports
that are associated with the VLAN become inactive.
This example shows how to assign VLAN 5 to a PVLAN 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 PVLAN as a community VLAN:
switch# configure terminal
switch(config)# vlan 100
switch(config-vlan)# private-vlan community
This example shows how to assign VLAN 200 to a PVLAN as an insolated VLAN:
switch# configure terminal
switch(config)# vlan 200
switch(config-vlan)# private-vlan isolated
Associating Secondary VLANs with a Primary Private VLAN
When you associate secondary VLANs with a primary VLAN, follow these guidelines:
The secondary-vlan-list parameter cannot contain spaces. It can contain multiple comma-separated items.
Each item can be a single secondary VLAN ID or a hyphenated range of secondary VLAN IDs.
Cisco Nexus 3000 NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)U3(1)
OL-26590-01 43
Configuring Private VLANs
Configuring a VLAN as a Private VLAN