2 vlan-translation – Accton Technology ES4626 User Manual
Page 189

189
Command: show vlan-translation
Function:
Display the information of all the ports at VLAN-translation state.
Parameter:
None.
Command Mode:
Admin Mode.
Usage Guide:
Display the information of all the ports at VLAN-translation state, including
enabling, packet dropped, direction and other information.
Example:
Display current VLAN translation state information.
Switch#show vlan-translation
Interface Ethernet1/1:
vlan-translation is enable, miss drop is set in
Interface Ethernet1/2:
vlan-translation is enable, miss drop is not set
Interface Ethernet1/3:
vlan-translation is enable, miss drop is set both
5.4.3.2 vlan-translation
Command: vlan-translation <old-vlan-id> to <new-vlan-id> {in|out}
no vlan-translation <old-vlan-id> {in|out}
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 entrance translation;out indicates exit translation.
Command Mode:
Port Mode.
Default:
The command is for configuring the in and out 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 the “vlan-translation miss drop” command will determine the next
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