Chapter 1
Configuring CDP
Beginning in privileged EXEC mode, follow these steps to enable CDP on a port when it has been
disabled:
Command
Step 1
configure terminal
Step 2
interface interface-id
Step 3
cdp enable
Step 4
end
Step 5
copy running-config startup-config
This example shows how to enable CDP on a port when it has been disabled.
Switch# configure terminal
Switch(config)# interface gigabitethernet1/0/1
Switch(config-if)# cdp enable
Switch(config-if)# end
Monitoring and Maintaining CDP
Table 1-2
Commands for Displaying CDP Information
Command
clear cdp counters
clear cdp table
show cdp
show cdp entry entry-name
[protocol
version]
|
show cdp interface [interface-id]
show cdp neighbors [interface-id]
[detail]
show cdp traffic
OL-25303-03
Purpose
Enter global configuration mode.
Specify the interface on which you are enabling CDP, and enter
interface configuration mode.
Enable CDP on the interface after disabling it.
Return to privileged EXEC mode.
(Optional) Save your entries in the configuration file.
Description
Reset the traffic counters to zero.
Delete the CDP table of information about neighbors.
Display global information, such as frequency of transmissions and the holdtime
for packets being sent.
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.
Display information about interfaces where CDP is enabled.
You can limit the display to the interface about which you want information.
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.
Display CDP counters, including the number of packets sent and received and
checksum errors.
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
Monitoring and Maintaining CDP
1-5