13-7
Cisco ME 3400 EthernetAccess Switch SoftwareConfiguration Guide
78-17058-01
Chapter13 Configuring IEEE 802.1Q and L ayer 2 Protocol Tunneling Configuring IEEE 802.1Q Tunneling
Use the no switchport mode dot1q-tunnel interface configuration command to return the port to the
default state of access. Use the no vlan dot1q tag native global configuration command to disable
tagging of native VLAN packets.
This example shows how to configure an interface as a tunnel port, enable tagging of native VLAN
packets, and verify the configuration. In this configuratio n, the VLAN ID for th e custo mer conn ected to
Gigabit Ethernet interface 2 is VLAN 22. This VLAN is by default a UNI isolated VLAN.
Switch(config)# interface gigabitethernet0/2
Switch(config-if)# switchport access vlan 22
% Access VLAN does not exist. Creating vlan 22
Switch(config-if)# switchport mode dot1q-tunnel
Switch(config-if)# exit
Switch(config)# vlan dot1q tag native
Switch(config)# end
Switch# show dot1q-tunnel interface gigabitethernet0/2
dot1q-tunnel mode LAN Port(s)
-----------------------------
Gi0/1
Switch# show vlan dot1q tag native
dot1q native vlan tagging is enabled
Step4 switchport access vlan vlan-id Specify the default VLAN, which is used if the interface stops trunking.
This VLAN ID is specific to the particular customer.
Note If the VLAN is a UNI isolated VLAN, local switching does not
occur between UNIs on the switch. If the VLAN is a UNI
community VLAN, local switching is allowed.
Step5 switchport mode dot1q-tunnel Set the interface as an IEEE 802.1Q tunnel port.
Step6 exit Return to global configuration mode.
Step7 vlan dot1q tag native (Optional) Set the switch to enable tagging of native VLAN packets on all
IEEE 802.1Q trunk ports. When not set, and a customer VLA N ID is the
same as the native VLAN, the trunk port does not apply a metro tag, and
packets could be sent to the wrong destination.
Step8 end Return to privileged EXEC mode.
Step9 show running-config
show dot1q-tunnel
Display the ports configured for IEEE 802.1Q tunneling.
Display the ports that are in tunnel mode.
Step10 show vlan dot1q tag native Display IEEE 802.1Q native VLAN tagging status.
Step11 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose