Cisco 4500M Software Manual page 297

Software guide
Table of Contents

Advertisement

Chapter 19
Configuring 802.1Q and Layer 2 Protocol Tunneling
Command
Step 3
Switch(config-if)# switchport
mode access
or
switchport mode dot1q-tunnel
Step 4
Switch(config-if)#
l2protocol-tunnel [cdp | stp |
vtp]
Step 5
Switch(config-if)#
l2protocol-tunnel
shutdown-threshold [cdp | stp |
vtp] value
Step 6
Switch(config-if)#
l2protocol-tunnel drop-threshold
[cdp | stp | vtp] value
Step 7
Switch(config-if)# exit
Step 8
Switch(config)# errdisable
recovery cause l2ptguard
Step 9
Switch(config)# l2protocol-tunnel
cos value
Step 10
Switch(config)# end
Step 11
Switch# show l2protocol
Step 12
Switch# copy running-config
startup-config
Use the no l2protocol-tunnel [cdp | stp | vtp] interface configuration command to disable protocol
tunneling for one of the Layer 2 protocols or for all three. Use the no l2protocol-tunnel
shutdown-threshold [cdp | stp | vtp] and the no l2protocol-tunnel drop-threshold [cdp | stp | vtp]
commands to return the shutdown and drop thresholds to the default settings.
This example shows how to configure Layer 2 protocol tunneling for CDP, STP, and VTP and how to
verify the configuration.
Switch(config)# interface FastEthernet2/1
Switch(config-if)# l2protocol-tunnel cdp
Switch(config-if)# l2protocol-tunnel stp
Switch(config-if)# l2protocol-tunnel vtp
OL-6696-01
Purpose
Configures the interface as an access port or as an 802.1Q tunnel port.
Enables protocol tunneling for the desired protocol. If no keyword is
entered, tunneling is enabled for all three Layer 2 protocols.
(Optional) Configures the threshold for packets-per-second accepted for
encapsulation. The interface is disabled if the configured threshold is
exceeded. If no protocol option is specified, the threshold applies to each of
the tunneled Layer 2 protocol types. The range is 1 to 4096. The default is
to have no threshold configured.
If you also set a drop threshold on this interface, the
Note
shutdown-threshold value must be greater than or equal to the
drop-threshold value.
(Optional) Configures the threshold for packets-per-second accepted for
encapsulation. The interface drops packets if the configured threshold is
exceeded. If no protocol option is specified, the threshold applies to each of
the tunneled Layer 2 protocol types. The range is 1 to 4096. The default is
to have no threshold configured.
If you also set a shutdown threshold on this interface, the
Note
drop-threshold value must be less than or equal to the
shutdown-threshold value.
Returns to global configuration mode.
(Optional) Configures the recovery mechanism from a Layer 2
maximum-rate error so that the interface is re-enabled and can try again.
Errdisable recovery is disabled by default; when enabled, the default time
interval is 300 seconds.
(Optional) Configures the CoS value for all tunneled Layer 2 PDUs. The
range is 0 to 7; the default is the default CoS value for the interface. If none
is configured, the default is 5.
Returns to privileged EXEC mode.
Displays the Layer 2 tunnel ports on the switch, including the protocols
configured, the thresholds, and the counters.
(Optional) Saves your entries in the configuration file.
Software Configuration Guide—Release 12.2(25)EW
Configuring Layer 2 Protocol Tunneling
19-11

Advertisement

Table of Contents
loading

This manual is also suitable for:

4500 series

Table of Contents