vlan translate
Syntax
vlan translate no vlan translate
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.
Theno
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
Authority
Administrators or local user group members with execution rights for this command.
Examples
Translates external VLAN200to internal VLAN20on interface1/1/2.
开关#config开关(config)#vlan 20开关(config-vlan-20)#exit开关(config)#interface 1/1/2开关(config-if)#没有路由开关(config-if)#vlan trunk allowed 20开关(config-if)#vlan translate 200 20
Translates external VLANs100and300to internal VLANs10and20on interface1/1/2.
开关#config开关(config)#vlan 10,30开关(config-vlan-20)#exit开关(config)#interface 1/1/2开关(config-if)#没有路由开关(config-if)#vlan trunk allowed 10,30开关(config-if)#vlan translate 100 10开关(config-if)#vlan translate 300 30