Send document comments to nexus7k-docfeedback@cisco.com
9-12
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
This example shows how to enable protocol tunneling on 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)# l2protocol tunnel stp
switch(config-if)# exit
switch(config)# exit
Configuring Global CoS for L2 Protocol Tunnel Ports
You can specify a Class of Service (CoS) value globally so that ingress BPDUs on the tunnel ports are
encapsulated with the specified class.
SUMMARY STEPS
1. configure terminal
2. l2protocol tunnel cos value
3. no l2protocol tunnel cos
4. exit
5. copy running-config startup-config
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.
Step 5
l2protocol tunnel [cdp | stp | vtp]
Example:
switch(config-if)# l2protocol tunnel stp
Enables Layer 2 protocol tunneling. Optionally, you
can enable CDP, STP, or VTP tunneling.
Step 6
no l2protocol tunnel [cdp | stp | vtp]
Example:
switch(config-if)# no l2protocol tunnel
(Optional) Disables protocol tunneling.
Step 7
exit
Example:
switch(config-if)# exit
switch(config)# exit
Exits configuration mode.
Step 8
copy running-config startup-config
Example:
switch# copy running-config startup-config
(Optional) Copies the running configuration to the
startup configuration.
Command Purpose