Configuring Layer 2 Tunneling Characteristics
Beginning in privileged EXEC mode, follow these steps to configure a port for Layer 2 protocol tunneling:
This example shows how to configure Layer 2 protocol tunneling for STP and CDP and verify the configuration.
Switch(config)# interface gigabitethernet0/7
Switch(config-if)# l2protocol-tunnel stp
Switch(config-if)# l2protocol-tunnel cdp
Switch(config-if)# l2protocol-tunnel shutdown-threshold 400
Switch(config-if)# exit
Switch(config)# l2protocol-tunnel cos 6
Switch(config)# end
Switch# show l2protocol
Port Protocol Shutdown Threshold Counters
(cos/cdp/stp/vtp) (cdp/stp/vtp/decap)
--------------------------------------------------------------
Gi0/7 cdp stp 6/400 /400 /400 0/0/0/0
Monitoring and Maintaining Tunneling Status
Table 13-2 shows the privileged EXEC commands for monitoring and maintaining 802.1Q and Layer 2 protocol tunneling.
For detailed information about these displays, refer to the Catalyst 3550 Multilayer Switch Command Reference for this release.
This example shows how to display the 802.1Q tunnel ports on the switch:
Switch# show dot1qtunnel
Port
-----
Gi0/1
Gi0/2
Gi0/3
Gi0/6
Po2
This example shows how to display the status of native VLAN tagging on the switch:
Switch# show vlan dot1q tag native
dot1q native vlan tagging is enabled
This example shows how to display information about the Layer 2 protocol tunneling on the switch:
Switch# show l2protocol-tunnel
Port Protocol Shutdown Threshold Counters
(cos/cdp/stp/vtp) (cdp/stp/vtp/decap)
--------------------------------------------------------------
Gi0/1 cdp vtp 5/10 /100 /5 0/0/0/0
Gi0/2 cdp stp vtp 5/----/----/---- 0/0/0/0
Gi0/3 cdp stp vtp 5/----/----/---- 0/0/0/0
Gi0/4 cdp stp vtp 5/----/----/---- 4/173/0/5
Gi0/5 cdp stp vtp 5/----/----/---- 0/0/0/11
Gi0/6 cdp stp vtp 5/----/----/---- 0/0/0/0
Gi0/7 cdp vtp 5/----/----/---- 0/0/0/0
Gi0/8 cdp stp vtp 5/----/----/---- 0/0/0/0
Gi0/11 cdp stp vtp 5/----/----/---- 0/0/0/0
Po2 cdp stp vtp 5/1000/1000/1000 8500/14855375/397/18391
This example shows how to display Layer 2 protocol tunneling summary information :
Switch# show l2protocol-tunnel summary
Port Protocol Shutdown Threshold
(cos/cdp/stp/vtp)
----------------------------------------
Gi0/1 cdp vtp 5/10 /100 /5
Gi0/2 cdp stp vtp 5/----/----/----
Gi0/3 cdp stp vtp 5/----/----/----
Gi0/4 cdp stp vtp 5/----/----/----
Gi0/5 cdp stp vtp 5/----/----/----
Gi0/6 cdp stp vtp 5/----/----/----
Gi0/7 cdp vtp 5/----/----/----
Gi0/8 cdp stp vtp 5/----/----/----
Gi0/11 cdp stp vtp 5/----/----/----
Po2 cdp stp vtp 5/1000/1000/1000
This example shows how to verify if the recovery timer from a Layer 2 protocol tunnel-error-disable state is enabled:
Switch# show errdisable recovery
ErrDisable Reason Timer Status
----------------- --------------
udld Disabled
bpduguard Disabled
channel-misconfig Disabled
pagp-flap Disabled
dtp-flap Disabled
link-flap Disabled
l2ptguard Enabled
psecure-violation Disabled
gbic-invalid Disabled
Timer interval: 300 seconds
Interfaces that will be enabled at the next timeout: