Cisco Catalyst 3560-X Software Configuration Manual page 537

Hide thumbs Also See for Catalyst 3560-X:
Table of Contents

Advertisement

Chapter 1
Configuring IEEE 802.1Q and Layer 2 Protocol Tunneling
Configuring an IEEE 802.1Q Tunneling Port
Beginning in privileged EXEC mode, follow these steps to configure a port as an IEEE 802.1Q tunnel
port:
Command
Step 1
configure terminal
Step 2
interface interface-id
Step 3
switchport access vlan vlan-id
Step 4
switchport mode dot1q-tunnel
Step 5
exit
Step 6
vlan dot1q tag native
Step 7
end
Step 8
show running-config
show dot1q-tunnel
Step 9
show vlan dot1q tag native
Step 10
copy running-config startup-config
Use the no switchport mode dot1q-tunnel interface configuration command to return the port to the
default state of dynamic desirable. 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 configuration, the VLAN ID for the customer connected to
Gigabit Ethernet interface 7 on stack member 1 is VLAN 22.
Switch(config)# interface gigabitethernet1/0/7
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
OL-25303-03
Purpose
Enter global configuration mode.
Enter interface configuration mode for the interface to be configured as a
tunnel port. This should be the edge port in the service-provider network
that connects to the customer switch. Valid interfaces include physical
interfaces and port-channel logical interfaces (port channels 1 to 48).
Specify the default VLAN, which is used if the interface stops trunking.
This VLAN ID is specific to the particular customer.
Set the interface as an IEEE 802.1Q tunnel port.
Return to global configuration mode.
(Optional) Set the switch to enable tagging of native VLAN packets on all
IEEE 802.1Q trunk ports. When not set, and a customer VLAN 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.
Return to privileged EXEC mode.
Display the ports configured for IEEE 802.1Q tunneling.
Display the ports that are in tunnel mode.
Display IEEE 802.1Q native VLAN tagging status.
(Optional) Save your entries in the configuration file.
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
Configuring IEEE 802.1Q Tunneling
1-7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3750-x

Table of Contents