ECS4110-28T_Management Guide

Table Of Contents
C
HAPTER
37
| VLAN Commands
Configuring VLAN Translation
– 1177
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.
Figure 428: Configuring VLAN Translation
The maximum number of VLAN translation entries is 8 per port, and up
to 96 for the system. However, note that configuring a large number of
entries may degrade the performance of other processes that also use
the TCAM, such as IP Source Guard filter rules, Quality of Service (QoS)
processes, QinQ, MAC-based VLANs, VLAN translation, or traps.
If VLAN translation is set on an interface with this command, and the
same interface is also configured as a QinQ access port with the
switchport dot1q-tunnel mode command, VLAN tag assignments will be
determined by the QinQ process, not by VLAN translation.
EXAMPLE
This example configures VLAN translation for Port 1 as described in the
Command Usage section above.
Console(config)#vlan database
Console(config-vlan)#vlan 10 media ethernet state active
Console(config-vlan)#vlan 100 media ethernet state active
Console(config-vlan)#exit
Console(config)#interface ethernet 1/1,2
Console(config-if)#switchport allowed vlan add 10 tagged
Console(config-if)#switchport allowed vlan add 100 tagged
Console(config-if)#interface ethernet 1/1
Console(config-if)#switchport vlan-translation 10 100
Console(config-if)#end
Console#show vlan-translation
Interface Old VID New VID
--------- ------- -------
Eth 1/ 1 10 100
Console#
12
(VLAN 10) (VLAN 100)
(VLAN 100)
(VLAN 10)
upstream
downstream