C
HAPTER
35
| VLAN Commands
Configuring IEEE 802.1Q Tunneling
– 844 –
EXAMPLE
This example sets the SVID to 99 in the outer tag for egress packets
exiting port 1 when the packet’s CVID is 2.
Console(config)#interface ethernet 1/1
Console(config-if)#switchport dot1q-tunnel service 99 match cvid 2
Console(config-if)#
In the following examples, ports 1 and 2 are configured as follows:
Port 1 = Access, PVID = 100, VLAN = 100(u), 101(u)
Port 2 = Uplink, VLAN = 100(t), 101(t)
1. Inject tagged frame (VID=10) to Port 1, then
=> Port 2: exits double-tagged frame (SVID=100, CVID=10)
(switching)
2. Port 1: switchport dot1q-tunnel service 101 match cvid 10
Inject tagged frame (VID=10) to Port 1, then
=> Port 2: exits double-tagged frame (SVID=101, CVID=10)
(ingress vlan translation)
Inject double-tagged frame (SVID=101, CVID=10) to Port 2, then
=> Port 1: exits single-tagged frame (VID=10)
(switching)
3. Port 1: switchport dot1q-tunnel service 101 match cvid 10 remove-ctag
Inject tagged frame (VID=10) to Port 1, then
=> Port 2: exits single-tagged frame (SVID=101)
(ingress vlan translation)
Inject single-tagged frame (SVID=101) to Port 2, then
=> Port 1: exits single-tagged frame (VID=10)
(egress vlan translation)
switchport dot1q-
tunnel tpid
This command sets the Tag Protocol Identifier (TPID) value of a tunnel
port. Use the no form to restore the default setting.
SYNTAX
switchport dot1q-tunnel tpid tpid
no switchport dot1q-tunnel tpid
tpid – Sets the ethertype value for 802.1Q encapsulation. This
identifier is used to select a nonstandard 2-byte ethertype to
identify 802.1Q tagged frames. The standard ethertype value is
0x8100. (Range: 0800-FFFF hexadecimal)
DEFAULT SETTING
0x8100