201
current VID, if no translation correspondence is configured, the packet will not be
dropped by default, but will after use this command.
Example:
Set to packet dropped at entrance of port1 when translation fails.
Switch(Config-If-Ethernet4/1)#vlan-translation miss drop in
6.4.4 Typical Application Of VLAN-translation
Scenario
Edge switch PE1 and PE2 of the ISP internet support the VLAN20 data task
between CE1 and CE2 of the client network with VLAN3. The port1 of PE1 is connected
to CE1, port10 is connected to public network; port1 of PE2 is connected to CE2, port10
is connected to public network. (as shown in Fig 6-4)
Configuration
Item
Configuration Explanation
VLAN-translation
Port1 of PE1 and PE2
Trunk port
Port1 and Port10 of PE1 and PE2
Configuration procedure is as follows
PE1
、
PE2:
Switch(Config)#interface ethernet 1/1
Switch(Config-Ethernet1/1)#switchport mode trunk
Switch(Config-Ethernet1/1)# dot1q-tunnel enable
Switch(Config-Ethernet1/1)# vlan-translation enable
Switch(Config-Ethernet1/1)# vlan-translation 20 to 3 in
Switch(Config-Ethernet1/1)# vlan-translation 3 to 20 out
Switch(Config-Ethernet1/1)# exit
Switch(Config)#interface ethernet 1/10
Switch(Config-Ethernet1/10)#switchport mode trunk
Switch(Config-Ethernet1/10)#exit