199
6.4.3 VLAN-translation Configuration Command
6.4.3.1 show vlan-translation
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
6.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
Command Explanation
Port mode
vlan-translation miss drop {in|out|both}
no vlan-translation miss drop
{in|out|both}
Configure the VLAN-translation packet
dropped on port if there is any failure.