20-3
Catalyst 2950 Desktop Switch Software Configuration Guide
78-14982-01
Chapter 20 Configuring CDP Configuring CDP
Use the no form of the CDP commands to return to the default settings.
This example shows how to configure and verify CDP characteristics.
Switch# configure terminal
Switch(config)# cdp timer 50
Switch(config)# cdp holdtime 120
Switch(config)# cdp advertise-v2
Switch(config)# end
Switch# show cdp
Global CDP information:
Sending CDP packets every 50 seconds
Sending a holdtime value of 120 seconds
Sending CDPv2 advertisements is enabled
For additional CDP show commands, see the Monitori ng and Mainta in ing CDP section on page 20-5 .

Disabling and Enabling CDP

CDP is enab led by default.
Note Creating and maintaining switc h clusters is based on t he regular exchange of CDP messa ges. Disabling
CDP can in terrupt cl uster di scovery. For more inform ation , see Chapter 6 , Clustering Switches.
Beginning in privileged EXEC mode, follow these steps to disable the CDP device discovery capability:
Beginning in privileged EXEC mode, follow these steps to enable CDP when it has been disabled:
Step 6 show cdp Verify configu ratio n by disp layi ng g lo bal inf orm ation a bou t CD P on th e
device.
Step 7 copy running-config startup-config (Optiona l) Save your entries in the co nfigurati on file.
Command Purpose
Command Purpose
Step 1 configure terminal Enter g lob al c onfigura tion m ode .
Step 2 no cdp run Disable CDP.
Step 3 end Return to pr ivileged EX EC m ode.
Command Purpose
Step 1 configure terminal Enter g lob al c onfigura tion m ode .
Step 2 cdp run Enable CDP after disabling it.
Step 3 end Return to pr ivileged EX EC m ode.