user manual
PurposeCommand or Action
Specifies the interface on which you are enabling CDP,
and enters interface configuration mode.
interface interface-id
Example:
Switch(config)# interface gigabitethernet1/0/1
Step 2
Enables CDP on a disabled interface.cdp enable
Example:
Switch(config-if)# cdp enable
Step 3
Returns to privileged EXEC mode.end
Example:
Switch(config-if)# end
Step 4
Example
The following example shows how to enable CDP on a disabled port:
Switch# configure terminal
Switch(config)# interface gigabitethernet1/0/1
Switch(config-if)# cdp enable
Switch(config-if)# end
Related Topics
Disabling CDP on an Interface, on page 38
Monitoring and Maintaining CDP
Table 6: Commands for Displaying CDP Information
DescriptionCommand
Resets the traffic counters to zero.clear cdp counters
Deletes the CDP table of information about neighbors.clear cdp table
Displays global information, such as frequency of transmissions
and the holdtime for packets being sent.
show cdp
Catalyst 2960-X Switch Network Management Configuration Guide, Cisco IOS Release 15.0(2)EX
40 OL-29044-01
Configuring the Cisco Discovery Protocol
Monitoring and Maintaining CDP