C
HAPTER
36
| VLAN Commands
Configuring IEEE 802.1Q Tunneling
– 1145 –
7. Verify configuration settings.
Console#show dot1q-tunnel service
802.1Q Tunnel Service Subscriptions
Port Match C-VID S-VID
-------- ----------- -----
Eth 1/ 1 10 100
Eth 1/ 1 20 200
Eth 1/ 1 30 300
Step 2. Configure Switch C.
1. Create VLAN 100, 200 and 300.
Console(config)#vlan database
Console(config-vlan)#vlan 100,200,300 media ethernet state active
2. Configure port 1 and port 2 as tagged members of VLAN 100, 200 and
300.
Console(config)#interface ethernet 1/1,2
Console(config-if)#switchport allowed vlan add 100,200,300 tagged
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
COMMAND MODE
Interface Configuration (Ethernet, Port Channel)
COMMAND USAGE
â—† Use the switchport dot1q-tunnel tpid command to set a custom
802.1Q ethertype value on the selected interface. This feature allows
the switch to interoperate with third-party switches that do not use the
standard 0x8100 ethertype to identify 802.1Q-tagged frames. For
example, 0x1234 is set as the custom 802.1Q ethertype on a trunk
port, incoming frames containing that ethertype are assigned to the
VLAN contained in the tag following the ethertype field, as they would
be with a standard 802.1Q trunk. Frames arriving on the port
containing any other ethertype are looked upon as untagged frames,
and assigned to the native VLAN of that port.