mac

VLAN Configuration
199
15.1.41 vlan-translation
Command: vlan-translation <old-vlan-id> to <new-vlan-id> in
no vlan-translation <old-vlan-id> in
Function: Add VLAN translation by creating a mapping between original VLAN ID and
current VLAN ID; the no form of this command deletes corresponding mapping.
Parameter: old-vlan-id is the original VLAN ID; new-vlan-id is the translated VLAN ID; in
indicates ingress translation.
Command Mode: Global/Port Mode.
Default: There is no VLAN translation relation.
Usage Guide: The command is for configuring the translation relation of the VLAN
translation function. The data packets will be matched according to the configured
translation relations, and its VLAN ID will be changed to the one in the configured item
once matched, while forward the packets of the original VLAN if not match. This
command cannot be used with dot1q-tunnel enable at the same time.
Example: Move the VLAN100 data entered from the port1 to VLAN2 after ingress
translation.
Switch#config
Switch(config)#vlan-translation 100 to 2 in
Switch(config)#interface ethernet 1/1
Switch(Config-If-Ethernet1/1)#vlan-translation enable
Switch(Config-If-Ethernet1/1)#exit
Switch(config)#
15.1.42 vlan-translation enable
Command: vlan-translation enable
no vlan-translation enable
Function: Enable VLAN translation on the port; the no 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: vlan-translation and dot1q-tunnel are mutually exclusive, it is
recommended to enable vlan-translation on trunk port and manually disable port filtering.
Example: Enable VLAN translation function on port1.
Switch#config
Switch(config)#interface ethernet 1/1