Cisco Nexus 5000 Series Command Reference Release 4.0(1a)N2(1) (OL-16599-01, March 2009)

Send comments to nx5000-docfeedback@cisco.com
2-98
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 2 Ethernet Commands
switchport private-vlan mapping
switchport private-vlan mapping
To define the private VLAN association for a promiscuous port, use the switchport private-vlan mapping
command. To clear all mapping from the primary VLAN, use the no form of this command.
switchport private-vlan mapping {primary-vlan-id} {[add] secondary-vlan-id | remove
secondary-vlan-id}
no switchport private-vlan mapping
Syntax Description
Command Default None
Command Modes Interface configuration mode
Command History
Usage Guidelines There is no run-time effect on the port unless it is in private VLAN-promiscuous mode. If the port is in
private VLAN-promiscuous mode but the primary VLAN does not exist, the command is allowed but the
port is made inactive.
The secondary VLAN may be an isolated or community VLAN.
See the private-vlan command for more information on primary VLANs, secondary VLANS, and
isolated or community ports.
Note A PVLAN isolated port on a Cisco Nexus 5000 Series switch running the current release of Cisco
NX-OS does not support IEEE 802.1q encapsulation and cannot be used as a trunk port.
Examples This example shows how to configure the associate primary VLAN 18 to secondary isolated VLAN 20
on a private VLAN promiscuous port:
switch(config-if)# switchport private-vlan mapping 18 20
This example shows how to add a VLAN to the association on the promiscuous port:
switch(config-if)# switchport private-vlan mapping 18 add 21
primary-vlan-id Number of the primary VLAN of the private VLAN relationship.
add (Optional) Associates the secondary VLANs to the primary VLAN.
secondary-vlan-id Number of the secondary VLAN of the private VLAN relationship.
remove Clears the association between the secondary VLANs and the primary
VLAN.
Release Modification
4.0(0)N1(1a) This command was introduced.