Cisco Discovery Protocol
CDP is a Cisco proprietary protocol.
It is enabled on Cisco devices (routers, switches, firewalls, IP phones, etc) by default.
CDP messages are periodically sent to multicas MAC address 0100.0CCC.CCCC.
When a device receives a CDP message, it processes and discards the message. It does not forward it to other devices.
By default, CDP messages are sent once every 60 seconds.
By default, the CDP holdtime is 180 seconds. If a message isn't received from a neighbor for 180 seconds, the neighbor is removed from the CDP neighbor table.
CDPv2 messages are sent by default.





CDP show command summary
show command summaryShows basic information about CDP (timers, version).
R1# show cdpDisplays how many CDP messages have been sent and received.
R1# show cdp trafficDisplays which interfaces CDP is enabled on.
R1# show cdp interfaceLists CDP neighbors and some basic information about each neighbor.
R1# show cdp neighborsLists each CDP neighbor with more detailed information.
R1# show cdp neighbors detailDisplays the same infor as above, but for the specified neighbor only.
R1# show cdp entry <name>CDP configuration commands
CDP is globally enabled by default.
CDP is also enabled on each interface by default.
To enable/disable CDP globally:
R1(config)# [no] cdp runTo enable/disable CDP on specific interfaces:
R1(config-if)# [no] cdp enableConfigure the CDP timer:
R1(config)# cdp timer <seconds>Configure the CDP holdtime:
R1(config)# cdp holdtime <seconds>Enable/disable CDPv2:
R1(config)# [no] cdp advertise-v2
Wireshark capture

Last updated