Command Mode
Interface Configuration (Ethernet, Port Channel)
Command Usage
QinQ tunneling must be enabled on the switch using the d ot1q-tu nnel
system-tunnel-control
command before the
switchport dot1q-tunnel
mode
interface command can take effect.
When a tunnel uplink port receives a pack et from a cust omer, the cus tomer
tag (regardless of whether there are one or more tag la yers) is retained in the
inner tag, and the service provider’s tag add ed to the oute r tag.
When a tunnel uplink port receives a packet from th e servic e provider, the
outer service provider’s tag is stri pped off , and the packet pas sed on to the
VLAN indicated by the inner tag. If no inner tag is found, the packet is p as sed
onto the native VLAN defined for the uplink po rt.
Example
Console(config)#interface ethernet 1/1
Console(config-if)#switchport dot1q-tunnel mode access
Console(config-if)#
Related Commands
show dot1q-tunnel (34-17)
show interfaces switchp ort (27- 11)
switchport dot1q-tunnel tpid
This command sets the Tag Protocol Identifier (TPID) value of a tunnel port. U se 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 comm and to set a cu stom 802.1Q
ethertype value on the selected interface. This featu re allo ws the swit ch to
interoperate with third-party switches that do not use the standard 0 x8100
ethertype to identify 802.1Q-tagged frames. For example, 0x1234 is set as the
34-16
VLAN Commands
34