Cisco 3560x-24p 参考指南

下载
页码 1188
 
2-469
Catalyst 3750-X and 3560-X Switch Command Reference
OL-21522-02
Chapter 2      Catalyst 3750-X and 3560-X 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 stack or on a standalone 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 | removesecondary-vlan-list}
no private-vlan mapping
Note
This command is not supported on switches running the LAN base feature set.
Syntax Description
Defaults
The default is to have no private VLAN SVI mapping configured.
Command Modes
Interface configuration
Command History
Usage Guidelines
The switch must be in VTP transparent mode when you configure private VLANs.
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(53)SE2
This command was introduced.