20-5
Cisco ME 3800X and 3600X Switch Software Configuration Guide
OL-23400-01
Chapter 20 Configuring CDP
Monitoring and Maintaining CDP
This example shows how to configure Layer 2 protocol peer on a service instance:
Switch (config)#
interface gigabitethernet0/1
Switch (config-if)#
switchport mode trunk
Switch (config-if)#
switchport trunk allowed vlan none
Switch (config-if)#
service instance
1
Ethernet
Switch (config-if-srv)#
encapsulation untagged
Switch (config-if-srv)#
l2protocol peer cdp
Switch (config-if-srv)#
bridge-domain 10
Switch (config-if-srv)#
end
Monitoring and Maintaining CDP
To monitor and maintain CDP on your device, use one or more of these commands in privileged EXEC
mode.
Command
Description
clear cdp counters
Reset the traffic counters to zero.
clear cdp table
Delete the CDP table of information about neighbors.
show cdp
Display global information, such as frequency of transmissions and the holdtime
for packets being sent.
show cdp entry
entry-name
[protocol
|
version]
Display information about a specific neighbor.
You can enter an asterisk (*) to display all CDP neighbors, or you can enter the
name of the neighbor about which you want information.
You can also limit the display to information about the protocols enabled on the
specified neighbor or information about the version of software running on the
device.
show cdp interface [interface-id]
Display information about interfaces where CDP is enabled.
You can limit the display to the interface about which you want information.
show cdp neighbors
[
interface-id
]
[detail]
Display information about neighbors, including device type, interface type and
number, holdtime settings, capabilities, platform, and port ID.
You can limit the display to neighbors of a specific interface or expand the display
to provide more detailed information.
show cdp traffic
Display CDP counters, including the number of packets sent and received and
checksum errors.