Specifications

2-880
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0XO(15.1(1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
switchport vlan mappi ng
The no form of the switchport vlan mapping commands clears the specified mapping configuration.
The no switchport vlan mapping all command clears all mapping configurations on the interface.
You cannot configure encapsula tion replica te on a S PAN destination port if th e source por t is config ured
as a tunnel port or has a 1-to-2 mapping configured. Encapsula tion replicate is suppor ted with 1-to-1
VLAN mapping.
Examples This e xample shows how to use one-to-on e mapping t o map VLA N IDs 1 a nd 2 in th e custo mer network
to VLANs 1001 and 100 2 in th e service- provider net work and to drop tra ffic from any other V LAN IDs.
Switch(config)# interface gigabiethernet0/1
Switch(config-if)# switchport vlan mapping 1 1001
Switch(config-if)# switchport vlan mapping 2 1002
Switch(config-if)# exit
This example shows how to configure selective QinQ mapping on the port so that traffic with a C-VLAN
ID of 5, 7, or 8 would enter the switch with an S-VLAN ID of 100. The traffic of any other VLAN IDs
is dropped.
Switch(config)# interface gigabiethernet0/1
Switch(config-if)# switchport vlan mapping 5, 7-8 dot1q-tunnel 100
Switch(config-if)# exit
Related Commands Command Description
show vlan mappin g Displays VLAN mapping information.