vlan translate
Syntax
vlan translate <VLAN-1> <VLAN-2>
no vlan translate <VLAN-1> <VLAN-2>
Description
Defines a bidirectional VLAN translation rule that maps an external VLAN ID to an internal VLAN ID on a LAG or layer 2 interface. Applies to both incoming and outgoing traffic.
The
no
form of this command removes an existing VLAN translation rule on the current interface.
NOTE:
VLAN translation and MVRP cannot be enabled on the same interface.
Command context
config-if
config-lag-if
Parameters
<VLAN-1>
<VLAN-2>
Authority
Administrators or local user group members with execution rights for this command.
Examples
Translates external VLAN 200 to internal VLAN 20 on interface 1/1/2.
switch# config switch(config)# vlan 20 switch(config-vlan-20)# exit switch(config)# interface 1/1/2 switch(config-if)# no routing switch(config-if)# vlan trunk allowed 20 switch(config-if)# vlan translate 200 20
Translates external VLANs 100 and 300 to internal VLANs 10 and 20 on interface 1/1/2.
switch# config switch(config)# vlan 10,30 switch(config-vlan-20)# exit switch(config)# interface 1/1/2 switch(config-if)# no routing switch(config-if)# vlan trunk allowed 10,30 switch(config-if)# vlan translate 100 10 switch(config-if)# vlan translate 300 30