Send feedback to nx5000-docfeedback@cisco.com
1-10
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 1      Configuring Private VLANs
Verifying Private VLAN Configuration
This example shows how to configure port 1/2 as a promiscuous port associated with the primary VLAN 
5 and the secondary isolated VLAN 109:
switch# configure terminal 
switch(config)# interface ethernet 1/2 
switch(config-if)# switchport mode private-vlan promiscuous 
switch(config-if)# switchport private-vlan mapping 5 109 
You can only apply this command to a physical interface.
To clear the private VLAN mapping, perform this task:
Verifying Private VLAN Configuration
To display private VLAN configuration information, use the following commands:
The following example shows how to display the private VLAN configuration:
switch# show vlan private-vlan 
Primary Secondary Type Ports
------- --------- --------------- -------------------------------------------
5 100 community
5 101 community Eth1/12, veth1/1
5 102 community
5 103 community
5 109 isolated Eth1/2
switch# show vlan private-vlan type 
Vlan Type
---- -----------------
5 primary
Step 3
switch(config-if)# switchport mode 
private-vlan promiscuous 
Configures the port as a promiscuous port for a private 
VLAN. You can only enable a physical Ethernet port 
as the promiscuous port.
Step 4
switch(config-if)# switchport 
private-vlan mapping {primary-vlan-id} 
{secondary-vlan-list | add 
secondary-vlan-list | remove 
secondary-vlan-list} 
Configures the port as a promiscuous port and 
associates the specified port with a primary VLAN 
and a selected list of secondary VLANs. The 
secondary VLAN can be either an isolated or 
community VLAN.
Command Purpose
Command Purpose
switch(config-if)# no switchport 
private-vlan mapping 
Clears the mapping from the private VLAN.
Command Purpose
switch# show system internal clis 
feature 
Displays the features enabled on the switch.
switch# show vlan private-vlan [type] 
Displays the status of the private VLAN.
switch# show interface switchport 
Displays information on all interfaces configured as 
switchports.