CDP Configuration:
CDP is enabled by default on Cisco Device.
Disabling CDP globally and enabling on an interface is not possible.
If on and interface CDP is disabled and then the encapsulation of the interface is changed, CDP is re-enabled automatically on that interface even if CDP was previously disabled.
(config)# cdp run
Enables CDP globally on device.
(config)# no cdp run
Disables CDP globally on device.
(config-if)# cdp enable
Enables CDP on an interface, if CDP is enabled globally.
(config-if)# no cdp enable
Disables CDP on an interface device.
(config)# cdp timer <seconds>
Specifies CDP packets transmission frequency. Default 60 sec.
(config)# cdp holdtime <seconds>
Specifies time limit for which a receiving device should hold information before discarding. Default 180 sec
CDP Monitoring and Maintenance Commands
clear cdp counters
clear cdp table
show cdp
show cdp entry device-name [protocol | version]
show cdp interface [type number]
show cdp neighbors [type number] [detail]
show cdp traffic