Cisco Catalyst 4500 Series Command Reference Manual page 1079

Cisco ios command reference
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Chapter 2
Cisco IOS Commands for the Catalyst 4500 Series Switches
You cannot configure one-to-one mapping and selective QinQ on the same interface.
Note
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 encapsulation replicate on a SPAN destination port if the source port is configured
as a tunnel port or has a 1-to-2 mapping configured. Encapsulation replicate is supported with 1-to-1
VLAN mapping.
Examples
This example shows how to use one-to-one mapping to map VLAN IDs 1 and 2 in the customer network
to VLANs 1001 and 1002 in the service-provider network and to drop traffic from any other VLAN 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
show vlan mapping
OL-25342 -01
Description
Displays VLAN mapping information.
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0SG and IOS 15.1(1)SG)
switchport vlan mapping
2-1021

Advertisement

Table of Contents
loading

Table of Contents