Associating Secondary VLANs with a Primary Private VLAN
SUMMARY STEPS
1. switch# configure terminal
2. switch(config)# vlan {vlan-id | vlan-range}
3. switch(config-vlan)# private-vlan {community | isolated | primary}
4. (Optional) switch(config-vlan)# no private-vlan {community | isolated | primary}
DETAILED STEPS
Command or Action
Step 1
switch# configure terminal
Step 2
switch(config)# vlan {vlan-id | vlan-range}
Step 3
switch(config-vlan)# private-vlan
{community | isolated | primary}
Step 4
switch(config-vlan)# no private-vlan
{community | isolated | primary}
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 isolated 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.
• The secondary-vlan-list parameter can contain multiple community VLAN IDs and one isolated VLAN
Cisco Nexus 5000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.1(3)N1(1)
58
Each item can be a single secondary VLAN ID or a hyphenated range of secondary VLAN IDs.
ID.
Purpose
Enters global configuration mode.
Places you into the VLAN configuration submode.
Configures the VLAN as either a community, isolated, or primary
PVLAN. In a PVLAN, you must have one 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 delete either the primary or
secondary VLAN, the ports that are associated with the VLAN become
inactive.
Configuring Private VLANs
OL-25842-01