Monitoring And Maintaining Cdp - Cisco Catalyst 2975 Software Configuration Manual

Ios release 12.2(55)se
Hide thumbs Also See for Catalyst 2975:
Table of Contents

Advertisement

Chapter 24
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

To monitor and maintain CDP on your device, perform one or more of these tasks, beginning in
privileged EXEC mode.
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-19720-02
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.
Monitoring and Maintaining CDP
Catalyst 2975 Switch Software Configuration Guide
24-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents