Send document comments to nexus7k-docfeedback@cisco.com
9-9
Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 5.x
OL-23435-03
Chapter 9 Configuring Q-in-Q VLAN Tunnels
Configuring Q-in-Q Tunnels and Layer 2 Protocol Tunneling
DETAILED STEPS
This example shows how to create an 802.1Q tunnel port:
switch# configure terminal
switch(config)# interface ethernet 7/1
switch(config-if)# switchport
switch(config-if)# switchport mode dot1q-tunnel
switch(config-if)# exit
switch(config)# exit
switch# show dot1q-tunnel
Changing the EtherType for Q-in-Q
You can change the 802.1Q EtherType value to be used for Q-in-Q encapsulation.
Command Purpose
Step 1
configure terminal
Example:
switch# configure terminal
Enters global configuration mode.
Step 2
interface ethernet slot/port
Example:
switch(config)# interface ethernet 7/1
Specifies an interface to configure, and enters
interface configuration mode.
Step 3
switchport
Example:
switch(config-if)# switchport
Sets the interface as a Layer 2 switching port.
Step 4
switchport mode dot1q-tunnel
Example:
switch(config-if)# switchport mode
dot1q-tunnel
Creates a 802.1Q tunnel on the port. The port will go
down and reinitialize (port flap) when the interface
mode is changed. BPDU filtering is enabled and
CDP is disabled on tunnel interfaces.
Step 5
no switchport mode
Example:
switch(config-if)# no switchport mode
(Optional) Disables the 802.1Q tunnel on the port.
Step 6
exit
Example:
switch(config-if)# exit
switch(config)# exit
Exits configuration mode.
Step 7
show dot1q-tunnel [interface if-range]
Example:
switch# show dot1q-tunnel
(Optional) Displays all ports that are in dot1q-tunnel
mode. Optionally you can specify an interface or
range of interfaces to display.
Step 8
copy running-config startup-config
Example:
switch# copy running-config startup-config
(Optional) Copies the running configuration to the
startup configuration.