CLI Reference Guide-R04

Table Of Contents
Chapter 22
| VLAN Commands
Configuring VLAN Translation
– 610 –
VLAN 10 for downstream traffic leaving port 1, then the VLAN IDs will be
swapped as shown below.
Figure 7: 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 dot1q-tunnel tpid
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