Administrator Guide

Layer 2 Switching Commands 831
Example
The following example configures Gi1/0/5 to access mode.
console(config)#interface gigabitethernet 1/0/5
console(config-if-Gi1/0/5)#switchport mode access
switchport mode dot1q-tunnel
Use the switchport mode dot1q-tunnel command to enable QinQ tunneling
on customer edge (CE) interfaces. Use the no form of the command to return
the interface to the default switchport mode (access).
Syntax
switchport mode dot1q-tunnel
no switchport mode dot1q-tunnel
Default Configuration
By default, QinQ processing of frames is disabled.
Command Mode
Interface mode (physical and port channel), Interface range mode (physical
and port channel)
User Guidelines
This command configures a customer edge (CE) port for QinQ tunneling.
The dot1q-tunnel mode is an overlay on switchport access mode. In
particular, configuring the access mode PVID sets the outer dot1q-tunnel
VLAN ID. Changing the switchport mode to access, general, or trunk,
effectively disables tunneling on the interface.
Customer edge ports can be physical ports or port channels. Untagged frames
received on the CE interface will be processed as if they belong to the PVID
and will be transmitted out the SP interface with a single VLAN tag. Tagged
frames received on the CE interface will be transmitted out the service
provider (SP) interface with an outer tag containing the native VLAN ID and
the inner tag as received on the CE interface.