Specifications

2-455
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
private-vlan mapping
private-vlan mapp ing
To create a mapping betwee n the primar y and the se condar y VLANs so tha t both sha re the sa me primary
VLAN SVI, use the private -vlan mapping command. To remove all PVLAN mappings from an SVI, use
the no form of this command.
private-vlan mapping pr ima ry- vla n-id {[secondary-vlan-list | {add secondary-vlan-list} |
{remove se condary-vlan- list}]}
no private-vlan map ping
Syntax Description
Defaults All PVLAN mappings are removed.
Command Modes Interface configur ation mode
Usage Guidelines 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 range of PVLAN IDs separated by hyp hens.
This command is valid in the interface configuration mode of the primary VLAN.
The SVI of the primary VLAN is created at Layer 3.
The traffic that is received on the secondary VLAN is routed by the SVI of the prima ry VLAN.
The SVIs of the existing secondary VLANs do not function and are considered down after this command
is entered.
A secondary SVI can be mapped to only one primary SVI. If the configured PVLANs association is
different from what is specified in this command (if the specified p rimary-vlan- id is configured as a
secondary VLAN), all the SVIs that a re specified in this command are brought down.
If you configure a mapping between two VLANs that do not have a valid Layer 2 assoc iation, the
mapping configuration does not t ake effect.
Examples This example shows how to map the interface of VLAN 20 to the SVI of VLAN 18:
Switch(config)# interface vlan 18
Switch(config-if)# private-vlan mapping 18 20
Switch(config-if)#
This example shows how to permit the routing of the secondary VLAN ingress traffic from PVLANs 303
through 307, 309, and 440 and how to verify th e configuration:
Switch# config terminal
primary-vlan-id V LAN ID of the primary VLAN of the PVLAN relationship.
secondary-vlan-list (Optional) VLAN ID of the secondary VLANs to map to the primary VLAN.
add (Optional) Maps the secondary VLAN to the primary VLAN.
remove (Optional) Removes the mapping between the secondary VLAN and the
primary VLAN.