39-29
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 39 Configuring Private VLANs Configuring PVLANs
Note The maximum number of unique PVLAN pairs supported by the switchport private-vlan mapping trunk
command is 500. For example, 500 isolated secondary VLANs could map to 500 primary VLANs,
because only one isolated VLAN association per primary VLAN is supported. Or, 500 community
secondary VLANs could map to one primary VLAN. Or, 250 community secondary VLANs could map
to 1 primary VLAN, and another 250 community secondary VLANs could map to another primary
VLAN for a total of 500 pairs.
Note By default, when you configure the mode to private VLAN trunk promiscuous, the native VLAN is set
to 1.
The [no] switchport private-vlan mapping command provides the following three levels of removal:
Remove one or more secondary VLANs from the list.
For example:
Switch(config-if)# switchport private-vlan mapping trunk 2 remove 222
Remove the entire mapping of PVLAN promiscuous trunk port to the specified primary VLAN (and
all of its selected secondary VLANs).
For example:
Switch(config-if)# no switchport private-vlan mapping trunk 2
Remove the mapping of a PVLAN promiscuous trunk port to all previously configured primary
VLANs (and all of their selected secondary VLANs).
For example:
Switch(config-if)# no switchport private-vlan mapping trunk
When you configure a Layer 2 etherchannel as a PVLAN promiscuous trunk port, observe that multiple
private VLAN pairs can be specified with the switchport private-vlan mapping trunk command so that
a promiscuous trunk port can carry multiple primary VLANs.
•The secondary_vlan_list parameter cannot contain spaces. It can contain multiple comma-separated
items. Each item can be a single PVLAN ID or a hyphenated range of PVLAN IDs.
•Enter a secondary_vlan_list or use the add keyword with a secondary_vlan_list to map the secondary
VLANs to the PVLAN promiscuous port.
•Use the remove keyword with a secondary_vlan_list to clear the mapping between secondary VLANs
and the PVLAN promiscuous port.
This example shows how to configure interface Port-channel 63 as a promiscuous trunk port and to verify
the configuration:
Switch# configure terminal
Switch(config)# interface port-channel 63
Switch(config-if)# switchport mode private-vlan trunk promiscuous
Step 5 Switch(config-if)# end Exits configuration mode.
Step 6 Switch# show interfaces port-channel
interface-number switchport Verifies the configuration.
Command Purpose