2-470
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
78-16201-01
Chapter2Cisco IOS Commands for the Catalyst 4500 Series Switches
switchport private-vlan mapping
switchport private-vlan mapping
To define private VLAN mapping 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} {secondary-vlan-list} |
{add secondary-vlan-list} | {remove secondary-vlan-list}
no switchport private-vlan mapping
Syntax Description
Defaults Private VLAN mapping is disabled.
Command Modes Interface configuration
Command History
Usage Guidelines There is no runtime effect on the port unless it is in PVLAN promiscuous mode. If the port is in PVLAN
promiscuous mode but the VLANs do not exist, the command is allowed, but the port is made inactive.
The secondary VLAN may be an isolated or community VLAN.
Examples This example shows how to configure the mapping of primary VLAN 18 to secondary isolated VLAN20
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)#
Related Commands show interfaces private-vlan mapping
primary-vlan-id Number of the primary VLAN of the PVLAN relationship; valid values are
from 2 to 4094.
secondary-vlan-list Number of the secondary VLANs to map to the primary VLAN; valid values
are from 2 to 4094.
add Maps the secondary VLANs to the primary VLAN.
remove Clears mapping between secondary VLANs and the primary VLAN.
Release Modification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
12.1(12c)EW Support for extended addressing was added.