How to Configure CDP
DETAILED STEPS
Command or Action
Step 1
enable
Example:
Switch> enable
Step 2
configure terminal
Example:
Switch# configure terminal
Step 3
interface interface-id
Example:
Switch(config)# interface gigabitethernet1/0/1
Step 4
cdp enable
Example:
Switch(config-if)# cdp enable
Step 5
end
Example:
Switch(config)# end
Step 6
show running-config
Example:
Switch# show running-config
Step 7
copy running-config startup-config
Example:
Switch# copy running-config startup-config
Related Topics
Default CDP Configuration, on page 432
Disabling CDP on an Interface, on page 437
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
440
Purpose
Enables privileged EXEC mode. Enter your password
if prompted.
Enters the global configuration mode.
Specifies the interface on which you are enabling CDP,
and enters interface configuration mode.
Enables CDP on a disabled interface.
Returns to privileged EXEC mode.
Verifies your entries.
(Optional) Saves your entries in the configuration file.