-680
Cisco MWR 2941 Mobile Wireless Edge Router Release 3.5 Command Reference, Cisco IOS Release 15.1(3)MR
OL-26895-01
Chapter Cisco MWR 2941 Router Command Reference, Release 15.1(3)MR
switchport vlan mapping
switchport vlan mapping
To map the traffic arriving on the VLAN original-vlan-id to the VLAN translated-vlan-id and the traffic that
is internally tagged with the VLAN translated-vlan-id with the VLAN original-vlan-id before leaving the
port, use the switchport vlan mapping command in interface configuration mode. To clear the mapping
between a pair of VLANs or clear all the mappings that are configured on the switch port, use the no form of
this command.
switchport vlan mapping original-vlan-id translated-vlan-id
no switchport vlan mapping {original-vlan-id translated-vlan-id | all}
Syntax Description
Defaults No mappings are configured on any switch port.
Command Modes Interface configuration
Command History
Usage Guidelines This command is not supported on GE Layer 2 WAN ports.
VLAN translation is not supported on HWIC interfaces.
You must enable VLAN translation on the port where you want VLAN translation to work. Use the
switchport vlan mapping enable command to enable VLAN translation.
Do not remove the VLAN that you are translating from the trunk. When you map VLANs, make sure
that both VLANs are allowed on the trunk that carries the traffic.
The mapping that you configured using the switchport vlan mapping command does not become
effective until the switch port becomes an operational trunk port.
You can map any two VLANs regardless of the trunk types carrying the VLANs.
Examples This example shows how to map the original VLAN to the translated VLAN:
Router(config-if)# switchport vlan mapping 100 201
original-vlan-id Original VLAN number; valid values are from 1 to 4094.
translated-vlan-id Translated VLAN number; valid values are from 1 to 4094.
all Clears all the mappings that are configured on the switch port.
Release Modification
12.2(17b)SXA Support for this command was introduced on the Supervisor Engine 720.
12.2(18)SXE This command is not supported on GE Layer 2 WAN ports.
12.2(33)SRA This command was integrated into Cisco IOS Release 12.2(33)SRA.
15.0(1)MR This command was integrated into Cisco IOS Release 15.0(1)MR.
Comments to this Manuals