Dec 08

CDP, Important Commands and Its Use


Cisco Discovery Protocol (CDP) is a Cisco trademark protocol that is designed to assists the network management of Cisco devices by collecting hardware and software information about the neighboring devices. The network engineers can discover information about neighbor networking devices, determine the type of software version, type of equipment used, interfaces on the device currently active, how they are configured, and other useful information. This information is important when you need to troubleshoot and document network functionality. When you get hired as a Network administrator and are new to the network, the CDP becomes very useful to know about your neighboring devices, their parameters, and other configuration details.

CDP works as a data link layer protocol and uses Subnetwork Access Protocol (SNAP) frame type. SNAP is limited to few media types like Ethernet, Fiber distributed data interfaces(FDDI), Asynchronous Transfer Mode(ATM), Point-to-Point Protocol(PPP), High-Level Data Link Control(HDLC), Token Ring, and Frame Relay. So, CDP also becomes limited to these media types supporting SNAP. CDP frames are distributed as multicasts but are not routed across the device as it is a 2nd layer protocol.

CDP message frame contains useful information about the network device mentioned below:

  • IOS version number
  • Hardware capabilities
  • Hardware platform
  • IP address of the device
  • Interface detail of the device that generates the CDP message
  • The port ID
  • Time period the CDP advertisement message is valid. CDP messages are generated in every 60 secs and the holddown time to discover its neighbor is 180 secs.
  • Device with the hostname
  • Type of Device

CDP commands used to monitor the router and network is mentioned in the following:

  1. cdp enable, no cdp enable – It is used to enable CDP on the interface in the interface configuration mode. The cdp is enabled by default at the global level on all the supported interfaces. Use “no cdp enable” in the interface configuration mode to disable cdp on the interface.
  2. cdp run, no cdp run – The cdp is always enabled at the global level but due to some reason if it has been disabled, then you can enable it globally by using “cdp run” command in the global configuration mode. To disable cdp at the global level use “no cdp run” command.
  3. cdp timer – It is a global command used to change the default time settings for the CDP timer on the router.
  4. cdp hold time – It is a global command used to change the default time settings for the Holdtime timer on the router.
  5. show cdp neighbors – It displays information about the neighboring network devices.
  6. show cdp neighbors detail – It shows detailed information about the neighboring network devices.
  7. show cdp entry – It works the same as the “show cdp neighbors” command and displays information about neighboring devices.
  8. show cdp entry [device name] – It shows information about the device as specified.
  9. show cdp interface – It shows cdp status on router interfaces.
  10. show cdp traffic – It shows cdp traffic information.
  11. clear cdp counter – It resets the cdp traffic counter data to zero.
  12. clear cdp table– It clears the cdp tables information.

Click here for CCNA Certification

Looking for an IT Job?

Please call us on 1800 159 151, or complete the form below.

  • This field is for validation purposes and should be left unchanged.

Recent Posts

Can you get a job with just a CCNA certificate?

Can you get a job with just a CCNA certificate?

People often worry about getting jobs after acquiring a few years of education or a specific certificate. This is the exact situation with people who.. Read More →
Does a CCNA Certification help in getting Good Jobs?

Does a CCNA Certification help in getting Good Jobs?

The CCNA certificate will surely help you get in a better position right now. This certificate holds much power because of its course. It mainly.. Read More →

The supply of this course/package/program is governed by our terms and conditions. Please read them carefully before enrolling, as enrolment is conditional on acceptance of these terms and conditions. Courses run subject to registrations.


Find out why we are the leading choice to help boost your career in Australia

Prepare to get IT job ready in 8 weeks

Trained 10,000+ professionals and counting

Experienced Provider: Operating Since 2004

Trained staff from 1000+ Australian Businesses

We Have Placed Candidates In

Over 1000 organisations have relied on Logitrain to be their trusted training partner.

High-quality, cost-effective training in Australia
Learn More
  • OpenPay
  • This field is for validation purposes and should be left unchanged.

Dont’ Wait. Fill the form for a free no-obligation information session with our course specialists.

About The Author

Delivering Classroom and Live Virtual Training with Price Beat Guarantee

EOFY Offer: Book and pay for a course before 30 June. Attend training until 31 August.