CLI Reference Guide-R04

Table Of Contents
Chapter 22
| VLAN Commands
Configuring VLAN Translation
– 609 –
Configuring VLAN Translation
QinQ tunneling uses double tagging to preserve the customers VLAN tags on
traffic crossing the service provider’s network. However, if any switch in the path
crossing the service providers network does not support this feature, then the
switches directly connected to that device can be configured to swap the
customers VLAN ID with the service providers VLAN ID for upstream traffic, or the
service providers 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 [ingress | egress] original-vlan new-vlan
no switchport vlan-translation [ingress | egress] original-vlan
ingress - specifies ingress only
egress - specifies egress only
original-vlan - The original VLAN ID. (Range: 1-4094)
new-vlan - The new VLAN ID. (Range: 1-4094)
Default Setting
Disabled
Command Mode
Interface Configuration (Ethernet)
Command Usage
If the next switch upstream does not support QinQ tunneling, then use this
command to map the customers VLAN ID to the service providers 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 customers 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
Table 110: 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