C613-50631-01 Rev A Command Reference for IE340 Series 676
AlliedWare Plus™ Operating System - Version 5.5.3-0.x
VLAN COMMANDS
SWITCHPORT
VLAN TRANSLATION
switchport vlan translation
Overview Use this command to configure a VLAN translation entry on an interface that
supports tagged packets. Create an entry to set either:
• VLAN ID translation: This sets the port to translate a packet's VLAN ID
between the one seen on the wire and an internal VID.
• VLAN double-tagging: This enables VLAN double-tagging on the port and
specifies the outer-tag VID to be added to packets received on the port.
(VLAN double-tagging is also known as VLAN stacking, nested VLANs, or
Q-in-Q.)
• Both VLAN ID translation and VLAN double tagging: This both adds an
outer-tag VID and translates the inner-tag VID between the wire-VID and the
internal VID.
You can create multiple translation entries for a port.
Use the no variant of this command to remove all translation entries or a specific
entry.
Syntax
switchport vlan translation vlan <wire-vid> vlan <vid>
switchport vlan translation vlan <wire-vid> outer-vlan
<outer-tag-vid>
switchport vlan translation vlan <wire-vid> vlan <vid>
outer-vlan <outer-tag-vid>
no switchport vlan translation [all|vlan <wire-vid>]
Default None (By default, no translation entries exist.)
Mode Interface Configuration for a switch port, a static channel group, or a dynamic
(LACP) channel group. Switch ports must be trunked.
Usage notes This command configures trunked ports only. One or more translation entries can
be added to a port. For information on double-tagging on access ports, and for
more information about VLAN ID translation and VLAN double-tagging on trunk
ports, see the VLAN Feature Overview and Configuration Guide.
NOTE: VLAN ID translation and VLAN double-tagging cannot be used on the same port
in combination with CoS remarking.
Parameter Description
vlan <wire-vid> VLAN-ID of the packet as it is seen on the wire.
vlan <vid> VLAN-ID of the VLAN as it was assigned when the VLAN was
created.
outer-vlan
<outer-tag-vid>
Enable double-tagging with the specified VID as the outer
tag.
all Delete all translation entries.