2-370
Catalyst 3750 Metro Switch Command Reference
OL-9645-10
Chapter 2 Catalyst 3750 Metro Switch Cisco IOS Commands
private-vlan mapping
private-vlan mapping
Use the
private-vlan mapping
interface configuration command on a switch virtual interface (SVI) on
the switch to create a mapping between a private-VLAN primary and secondary VLANs so that both
VLANs share the same primary VLAN SVI. Use the
no
form of this command to remove private-VLAN
mappings from the SVI.
private-vlan mapping
{[
add
|
remove
]
secondary-vlan-list
}
no private-vlan mapping
Syntax Description
Note
The switch must be in VTP transparent mode when you configure private VLANs.
Defaults
The default is to have no private VLAN SVI mapping configured.
Command Modes
Interface configuration
Command History
Usage Guidelines
The SVI of the primary VLAN is created at Layer 3.
Configure Layer 3 VLAN interfaces (SVIs) only for primary VLANs. You cannot configure Layer 3
VLAN interfaces for secondary VLANs. SVIs for secondary VLANs are inactive while the VLAN is
configured as a secondary VLAN.
The
secondary_vlan_list
parameter cannot contain spaces. It can contain multiple comma-separated
items. Each item can be a single private-VLAN ID or a hyphenated range of private-VLAN IDs. The list
can contain one isolated VLAN and multiple community VLANs.
Traffic that is received on the secondary VLAN is routed by the SVI of the primary VLAN.
A secondary VLAN can be mapped to only one primary SVI. IF you configure the primary VLAN as a
secondary VLAN, all SVIs specified in this command are brought down.
If you configure a mapping between two VLANs that do not have a valid Layer 2 private-VLAN
association, the mapping configuration does not take effect.
secondary-vlan-list
Specify one or more secondary VLANs to be mapped to the primary VLAN
SVI.
add
(Optional) Map the secondary VLAN to the primary VLAN SVI.
remove
(Optional) Remove the mapping between the secondary VLAN and the
primary VLAN SVI.
Release
Modification
12.2(25)EY
This command was introduced.