C
HAPTER
39
| VLAN Commands
Configuring VLAN Translation
– 1128 –
CONFIGURING VLAN TRANSLATION
QinQ tunneling uses double tagging to preserve the customer’s VLAN tags
on traffic crossing the service provider’s network. However, if any switch in
the path crossing the service provider’s network does not support this
feature, then the switches directly connected to that device can be
configured to swap the customer’s VLAN ID with the service provider’s
VLAN ID for upstream traffic, or the service provider’s VLAN ID with the
customer’s VLAN ID for downstream traffic.
This section describes commands used to configure VLAN translation.
switchport vlan-
translation
This command maps VLAN IDs between the customer and service provider.
SYNTAX
switchport vlan-translation original-vlan new-vlan
no switchport vlan-translation original-vlan
original-vlan - The original VLAN ID. (Range: 1-4093)
new-vlan - The new VLAN ID. (Range: 1-4093)
DEFAULT SETTING
Disabled
COMMAND MODE
Interface Configuration (Ethernet)
COMMAND USAGE
u If the next switch upstream does not support QinQ tunneling, then use
this command to map the customer’s VLAN ID to the service provider’s
VLAN ID for the upstream port. Similarly, if the next switch downstream
does not support QinQ tunneling, then use this command to map the
service provider’s VLAN ID to the customer’s VLAN ID for the
downstream port. Note that one command maps both the original-vlan
to new-vlan for ingress traffic and the new-vlan to original-vlan for
egress traffic on the specified port.
For example, assume that the upstream switch does not support QinQ
tunneling. If the command switchport vlan-translation 10 100 is
used to map VLAN 10 to VLAN 100 for upstream traffic entering port 1,
and VLAN 100 to VLAN 10 for downstream traffic leaving port 1, then
the VLAN IDs will be swapped as shown below.
Table 137: VLAN Translation Commands
Command Function Mode
switchport vlan-
translation
Maps VLAN IDs between the customer and service
provider
IC
show vlan-translation Displays the configuration settings for VLAN
translation
PE