3 typical applications of the dot1q-tunnel – PLANET WGSW-50040 User Manual
Page 89

10-10
1. Configure the dot1q-tunnel function on the ports
Command
Explanation
Port mode
dot1q-tunnel enable
no dot1q-tunnel enable
Enter/exit the dot1q-tunnel mode on the
ports.
2. Configure the type of protocol (TPID) on the ports
Command
Explanation
Port mode
dot1q-tunnel tpid
{0x8100|0x9100|0x9200|<1-65535>}
Configure the type of protocol on port.
10.3.3 Typical Applications of the Dot1q-tunnel
Scenario:
Edge switch PE1 and PE2 of the ISP internet forward the VLAN200~300 data between CE1 and CE2 of the
client network with VLAN3. The port1 of PE1 is connected to CE1, port10 is connected to public network, the
TPID of the connected equipment is 9100; port1 of PE2 is connected to CE2, port10 is connected to public
network.
Configuration Item
Configuration Explanation
VLAN3
Port1 of PE1 and PE2.
dot1q-tunnel
Port1 of PE1 and PE2.
tpid
9100
Configuration procedure is as follows:
PE1:
Switch(config)#vlan 3
Switch(Config-Vlan3)#switchport interface ethernet 1/1
Switch(Config-Vlan3)#exit
Switch(config)#interface ethernet 1/1
Switch(Config-Ethernet1/1)# dot1q-tunnel enable
Switch(Config-Ethernet1/1)# exit
Switch(Config)#interface ethernet 1/10
Switch(Config-Ethernet1/10)#switchport mode trunk
switch(Config-Ethernet1/10)#dot1q-tunnel tpid 0x9100
Switch(Config-Ethernet1/10)#exit
Switch(Config)#