Disabling And Enabling Cdp On An Interface; Monitoring And Maintaining Cdp - Cisco WS-C2960-24LC-S Software Configuration Manual

Software guide
Table of Contents

Advertisement

Monitoring and Maintaining CDP

Disabling and Enabling CDP on an Interface

CDP is enabled by default on all supported interfaces to send and to receive CDP information.
Beginning in privileged EXEC mode, follow these steps to disable CDP on a port:
Command
Step 1
configure terminal
Step 2
interface interface-id
Step 3
no cdp enable
Step 4
end
Step 5
copy running-config startup-config
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 gigabitethernet0/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
Catalyst 2960 Switch Software Configuration Guide
20-4
Purpose
Enter global configuration mode.
Specify the interface on which you are disabling CDP, and enter
interface configuration mode.
Disable CDP on the interface.
Return to privileged EXEC mode.
(Optional) Save your entries in the configuration file.
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.
Chapter 20
Configuring CDP
OL-8603-04

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ws-c2960s-24td-lWs-c2960s-48lpd-lCatalyst 2960

Table of Contents