200
forwarding if not match. Same original VLAN ID and same current VLAN ID can be
configured in different directions, however , the original and the current VLAN ID must not
be the same.
Example:
Move the VLAN100 data entered from the port1 to VLAN2 after entrance
translation, and the data traffic out from VLAN2 to VLAN100 after exit translation.
Switch#config
Switch(config)#interface ethernet 4/1
Switch(Config-If-Ethernet4/1)#dot1q-tunnel enable
Switch(Config-If-Ethernet4/1)#vlan-translation enable
Switch(Config-If-Ethernet4/1)#vlan-translation 100 to 2 in
Switch(Config-If-Ethernet4/1)#vlan-translation 2 to 100 out
Switch(Config-If-Ethernet4/1)#exit
6.4.3.3 vlan-translation enable
Command:vlan-translation enable
no vlan-translation enable
Function:
Enable VLAN translation on specified trunk port of the switch; the “
no
vlan-translation enable
” command restores to the default value.
Parameter:
None.
Command Mode:
Port Mode.
Default:
VLAN translation has not been enabled on the port by default.
Usage Guide:
To apply VLAN translation on the port the dot1q-tunnel function must be
first enabled and configured at trunk port.
Example:
Enable VLAN translation function on port1
Switch#config
Switch(config)#interface ethernet 4/1
Switch(Config-If-Ethernet4/1)#dot1q-tunnel enable
Switch(Config-If-Ethernet4/1)#vlan-translation enable
6.4.3.4 vlan-translation miss drop
Command:vlan-translation miss drop {in|out|both}
no vlan-translation miss drop {in|out|both}
Function:
Set to packet dropping upon translation failure; the “no” form of this command
restores to the default value.
Parameter:
In refers to entrance; out indicates exit; both represents bidirectional.
Command Mode:
Port Mode.
Default:
No packet dropping upon translation failure by default.
Usage Guide:
When performing the mapping translation between the original and the