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 gigabitethernet1/0/7
Port
-----
Gi1/0/1Port
-----
Switch# show vlan dot1q tag native
dot1q native vlan tagging is enabled
Related Topics
Configuringan IEEE 802.1Q TunnelingPort, on page 133
IEEE802.1Q Tunneling, on page 124
IEEE802.1Q Tunneling and Incompatibilities, on page 122
Example: Configuring Layer 2 Protocol Tunneling
Thefollowing example shows how to configure Layer 2 protocol tunneling for CDP, STP, and VTP and to
verifythe configuration.
Switch(config)# interface gigabitethernet1/0/11
Switch(config-if)# l2protocol-tunnel cdp
Switch(config-if)# l2protocol-tunnel stp
Switch(config-if)# l2protocol-tunnel vtp
Switch(config-if)# l2protocol-tunnel shutdown-threshold 1500
Switch(config-if)# l2protocol-tunnel drop-threshold 1000
Switch(config-if)# exit
Switch(config)# l2protocol-tunnel cos 7
Switch(config)# end
Switch# show l2protocol
COS for Encapsulated Packets: 7
Port Protocol Shutdown Drop Encapsulation Decapsulation Drop
Threshold Threshold Counter Counter Counter
------- -------- --------- --------- ------------- ------------- -------------
Gi0/11 cdp 1500 1000 2288 2282 0
stp 1500 1000 116 13 0
vtp 1500 1000 3 67 0
pagp ---- ---- 0 0 0
lacp ---- ---- 0 0 0
udld ---- ---- 0 0 0
Related Topics
ConfiguringLayer 2 ProtocolTunneling, on page 135
Layer2 Protocol Tunneling on Ports, on page 131
Layer2 Protocol Tunneling , on page 122
Layer2 Tunneling for EtherChannels, on page 124
Catalyst 2960-XR Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX1
144 OL-29440-01
Configuring IEEE 802.1Q and Layer 2 Protocol Tunneling
Example: Configuring Layer 2 Protocol Tunneling