Send document comments to nexus7k-docfeedback@cisco.com
9-16
Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 5.x
OL-23435-03
Chapter 9 Configuring Q-in-Q VLAN Tunnels
Verifying the Q-in-Q Configuration
Verifying the Q-in-Q Configuration
To display Q-in-Q tunnel and Layer 2 protocol tunneling configuration information, perform one of the
following tasks:
Configuration Examples for Q-in-Q and Layer 2 Protocol
Tunneling
This example shows a service provider switch that is configured to process Q-in-Q for traffic coming in
on Ethernet 7/1. A Layer 2 protocol tunnel is enabled for STP BPDUs. The customer is allocated VLAN
10 (outer VLAN tag).
switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)# vlan 10
switch(config-vlan)# no shutdown
switch(config-vlan)# no ip igmp snooping
switch(config-vlan)# exit
switch(config)# interface ethernet 7/1
switch(config-if)# switchport
switch(config-if)# switchport mode dot1q-tunnel
switch(config-if)# switchport access vlan 10
switch(config-if)# spanning-tree port type edge
switch(config-if)# l2protocol tunnel stp
switch(config-if)# no shutdown
switch(config-if)# exit
switch(config)# exit
switch#
Command Purpose
clear l2protocol tunnel counters [interface
if-range]
Clears all the statistics counters. If no interfaces
are specified, the Layer 2 protocol tunnel statistics
are cleared for all interfaces.
show dot1q-tunnel [interface if-range]
Displays a range of interfaces or all interfaces that
are in dot1q-tunnel mode.
show l2protocol tunnel [interface if-range
| vlan vlan-id]
Displays Layer 2 protocol tunnel information for
a range of interfaces, for all dot1q-tunnel
interfaces that are part of a specified VLAN or all
interfaces.
show l2protocol tunnel summary
Displays a summary of all ports that have Layer 2
protocol tunnel configurations.
show running-config l2pt
Displays the current Layer 2 protocol tunnel
running configuration.