PurposeCommand or Action
Enables CDP if it has been disabled.cdp run
Example:
Switch(config)# cdp run
Step 3
Returns to privileged EXEC mode.end
Example:
Switch(config)# end
Step 4
Verifies your entries.show running-config
Example:
Switch# show running-config
Step 5
(Optional) Saves your entries in the configuration file.copy running-config startup-config
Example:
Switch# copy running-config startup-config
Step 6
What to Do Next
Use the show run all command to show that CDP has been enabled. If you enter only show run, the enabling
of CDP may not be displayed.
Related Topics
Default CDP Configuration, on page 432
Disabling CDP, on page 434
Disabling CDP on an Interface
CDP is enabled by default on all supported interfaces to send and to receive CDP information.
Switch clusters and other Cisco devices (such as Cisco IP Phones) regularly exchange CDP messages.
Disabling CDP can interrupt cluster discovery and device connectivity.
Note
CDP bypass is not supported and may cause a port go into err-disabled state.Note
Follow these steps to disable CDP on a port.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
437
How to Configure CDP