CLI Reference Guide-R02

Table Of Contents
Chapter 18
| VLAN Commands
Configuring VLAN Translation
– 552 –
Console(config-vlan)#vlan 100 media ethernet state active
Console(config-vlan)#exit
Console(config)#interface ethernet 1/1,2
Console(config-if)#switchport allowed vlan add 10 tagged
Console(config-if)#switchport allowed vlan add 100 tagged
Console(config-if)#interface ethernet 1/1
Console(config-if)#switchport vlan-translation 10 100
Console(config-if)#end
Console#show vlan-translation
Ingress VLAN Translation
Interface Old VID New VID
--------- ------- -------
Eth 1/ 1 10 100
Egress VLAN Translation
Interface Old VID New VID
--------- ------- -------
Eth 1/ 1 100 10
Console#
show vlan-translation This command displays the configuration settings for VLAN translation.
Syntax
show vlan-translation [egress [interface interface] | ingress
[interface interface]| interface interface]
egress - Show configuration settings for egress ports.
ingress - Show configuration settings for ingress ports.
interface
ethernet unit/port
unit - Unit identifier. (Range: 1)
port - Port number. (Range: 1-18)
Command Mode
Privileged Exec
Example
Console#show vlan-translation
Ingress VLAN Translation
Interface Old VID New VID
--------- ------- -------
Eth 1/ 1 10 100
Eth 1/ 2 100 200
Egress VLAN Translation
Interface Old VID New VID
--------- ------- -------
Eth 1/ 1 100 10
Eth 1/ 2 100 200