30-21
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
 
Chapter 30      Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling
Configuring Layer 2 Protocol Tunneling
                    pagp          3000      2500            0         0         0
                    lacp          3000      2500            0         0         0
                    udld          3000      2500            0         0         0
Configuring the Customer Switch
Use the no switchport mode trunk, the no udld enable, and the no channel group 
channel-group-number mode desirable interface configuration commands to restore default interface 
settings.
This example shows you how to configure a customer switch:
Switch(config)# interface gigabitEthernet 2/14 
Switch(config-if)# switchport mode trunk 
Switch(config-if)# udld port
Switch(config-if)# channel-group 10 mode desirable 
Switch(config-if)# exit
This example shows how to configure the SP edge switch 1 and edge switch 2. VLANs 17, 18, 19, and 
20 are the access VLANs, Gigabit Ethernet interfaces 1/1/11 and 1/1/12 are point-to-point tunnel ports 
with PAgP and UDLD enabled, the drop threshold is 1000, and Fast Ethernet interface 1/1/13 is a trunk 
port.
SP edge switch 1 configuration:
Switch(config)# interface gigabitEthernet 1/1/11
Switch(config-if)# switchport access vlan 17
Switch(config-if)# switchport mode dot1q-tunnel
Switch(config-if)# l2protocol-tunnel point-to-point pagp
Command Purpose
Step 1
Switch# configure terminal
Enters the global configuration mode.
Step 2
Switch(config)# interface 
interface-id
Enters interface configuration mode. Enter the interface to be configured as 
a tunnel port.
Step 3
Switch(config-if)# switchport 
mode trunk
Enables trunking on the interface.
Step 4
Switch(config-if)# udld enable
Enables UDLD in normal mode on the interface
Step 5
Switch(config-if)# channel-group 
channel-group-number mode 
desirable
Assigns the interface to a channel group, and specifies desirable for the 
PAgP mode.
Step 6
Switch(config-if)# exit
Returns to global configuration mode.
Step 7
Switch(config)# interface 
port-channel port-channel number
Enters port-channel interface mode.
Step 8
Switch(config-if)# shutdown
Shuts down the interface.
Step 9
Switch(config-if)# no shutdown
Enables the interface.
Step 10
Switch(config-if)# end
Returns to global configuration mode.
Step 11
Switch# show l2protocol
Displays the Layer 2 tunnel ports on the switch, including the protocols 
configured, the thresholds, and the counters.
Step 12
Switch# copy running-config 
startup-config
(Optional) Saves your entries in the configuration file.