Specifications

2-879
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
switchport vlan mapp ing
switchport vlan mappi ng
Use the switchport vlan mapping interface configuration command to configure VLAN mapping on a trunk
port. You can configure one-to-one VLA N mapping, tradi tional IEEE 802 .1Q tunneling (QinQ) mapping, or
selective QinQ mapping. Use the no form of the command to disable the configuration.
switchport vlan mapping vlan-id {translated- id | dot1q tun nel translated-id}
no switchport vlan mapping vlan-id {translated-id | dot1q tunnel translated-id}
no switchport vlan mapping all
Syntax Description
Defaults No VLAN m apping i s conf igured.
Command Modes Interface configuration
Usage Guidelines Before configuring VLAN mapping on an interface, enter the switchport mode trunk interface
configuration command to config ure the interface as a trunk po rt.
You can configure VLAN mapping on a physical interface or on a port channel of multiple interfaces
with the same configuration.
To configure one-to-one VLAN mapping, use the switchport vlan mapping vlan-id translated-id
command .
Note To avoid mixing customer traffic, when you configure tra ditional QinQ on a trunk port,you should use
the switchport trunk allowed vlan vlan-id interface configuration command to configure the outer
VLAN ID (S-VLAN) as an allowed VLAN on the trunk port.
Note You cannot configure one-to-one mapping and select ive QinQ on the same interfac e.
vlan-id Specifies the original (customer) VLAN or VLANs (C-VLANs), also
known as the VLAN on the wire, for one-to-one or selective QinQ
mapping. You can enter multiple VLAN IDs separated by a comma or a
series of VLAN I Ds se parated by a hyphen ( for exa mple 1,2, 3-5). The
range is from 1 to 4094.
translated-id Specifies the translated VLAN-ID: the S-VLAN to be used in the service
provider network. The range is from 1 t o 4094.
dot1q-tunnel
translated-id
Adds a translated VLAN-ID to specify a VLAN tunnel (add an outer
S-VLAN tag). The range of the S-VLAN tag is 1 to 4094. Use these
keywords for traditional QinQ mapping.
all In the no switchport vlan mapping command, specifies that all VLAN
mapping configurations on the i nterface a re de leted.