SUMMARY STEPS
1. configureterminal
2. interfacevlan primary_vlan_id
3. private-vlanmapping [add |remove]secondary_vlan_list
4. end
5. showinterface private-vlan mapping
6. copyrunning-config startup config
DETAILED STEPS
PurposeCommand or Action
Entersglobal configuration mode.configureterminal
Example:
Switch# configure terminal
Step 1
Entersinterface configuration mode for the primary VLAN, and
configuresthe VLAN as an SVI. The VLAN ID range is 2 to 1001
and1006 to 4094.
interfacevlan primary_vlan_id
Example:
Switch(config)# interface vlan 10
Step 2
Mapsthe secondary VLANs to the Layer 3 VLAN interface of a
primaryVLAN to allow Layer 3 switching of private VLAN ingress
traffic.
private-vlanmapping [add |remove]
secondary_vlan_list
Example:
Switch(config-if)# private-vlan mapping
Step 3
Thesecondary_vlan_list parameter cannot containspaces. It can
containmultiple comma-separated items. Eachitem canbe asingle
privateVLAN ID or a hyphenated range of private VLAN IDs.
501-502
Entera secondary_vlan_list, or use the add keyword with a
secondary_vlan_listto map the secondary VLANs to the primary
VLAN.
Usethe remove keyword with a secondary_vlan_list to clear the
mappingbetween secondary VLANs and the primary VLAN.
Returnsto privileged EXEC mode.end
Example:
Switch(config-if)# end
Step 4
Verifiesthe configuration.showinterface private-vlan mapping
Example:
Switch# show interfaces private-vlan
Step 5
Catalyst 2960-XR Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX1
100 OL-29440-01
Configuring Private VLANs
Mapping Secondary VLANs to a Primary VLAN Layer 3 VLAN Interface