Specifications

2-869
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
switchport private-vlan mapping
switchport priva te-vlan mapping
To define private VLAN mapping for a promiscuous port, use the switchport private-vlan mapping
command. To clear all mapping f rom the primary VLAN, use the no fo rm of this comma nd.
switchport private-vlan mapping {primary-vlan-id} {secondary-vlan-list} |
{add secondary-vlan-list } | {remov e se condary-vlan- list}
switchport private-vlan mapping trunk {primary-vlan-id} [add | remove] secondary-vlan -list
no switchport private-vlan mapping [trunk]
Syntax Description
Defaults Private VLAN mapping is disabled.
Command Modes Interface configur ation mode
Usage Guidelines There is no run-time effect on the port un less it is in pr ivate VLAN promiscuous mode. If th e port is in
private VLAN promiscuous mode but the VLAN s do not exist, the command is allowe d, but the port is
made inactive.
The secondary VLAN may be an isolated or community VLAN.
Note The maximum number of unique private VLAN pairs supp orted by the swi tchport private-vlan
mapping trunk command above is 500. For example, one thousand sec ondary VLANs c ould map to one
primary VLAN, or one thousand seco ndary VLANs could map one to one to one thousand primary
VLANs.
Examples This example shows how to configure the mappin g of primary VLAN 18 to the seconda ry isolated
VLAN 20 on a port:
Switch(config-if)# switchport private-vlan mapping 18 20
Switch(config-if)#
This example shows how to add a VLAN to the mapping:
Switch(config-if)# switchport private-vlan mapping 18 add 21
Switch(config-if)#
primary-vlan-id Number of the primary VLAN of the private VLAN relationship; valid values
are from 2 to 4094 (excluding 1002 to 1005).
secondary-vlan-list Number of the sec ondary V LANs to map to the p rimary VLAN; va lid valu es
are from 2 to 4094.
add Maps the secondary VLANs to the primary VLAN.
remove Clears mapping between the sec ondary VLANs and the prima ry VLAN.
trunk Maps the trunks secondary VLANs to the primary VLAN.