Skip to main content

Cisco discovery protocol cdp how cdp work example and guide

Cisco Discovery Protocol CDP


Cisco Discovery Protocol (CDP) is a proprietary protocol designed by Cisco to help administrators collect information about both locally attached and remote devices. By using CDP, you can gather hardware and protocol information about neighbor devices, which is useful info for troubleshooting the network.
CDP messages are generated every 60 seconds as multicast messages on each of its active interfaces.
The information shared in a CDP packet about a Cisco device includes the following:
  • Name of the device configured with the hostname command
  • IOS software version
  • Hardware capabilities, such as routing, switching, and/or bridging
  • Hardware platform, such as 2600, 2950, or 1900
  • The layer-3 address(es) of the device
  • The interface the CDP update was generated on
CDP allows devices to share basic configuration information without even configuring any protocol specific information and is enabled by default on all interfaces.
CDP is a Datalink Protocol occurring at Layer 2 of the OSI model.
CDP is not routable and can only go over to directly connected devices.

CDP is enabled, by default, on all Cisco devices. CDP updates are generated as multicasts every 60 seconds with a hold-down period of 180 seconds for a missing neighbor. The no cdp run command globally disables CDP, while the no cdp enable command disables CDP on an interface. Use show cdp neighbors to list out your directly connected Cisco neighboring devices. Adding the detail parameter will display the layer-3 addressing configured on the neighbor.

How could CDP help you?

Manoj has just been hired as a senior network consultant at a large bank in Lucknow, Uttar Pradesh. He is expected to be able to take care of any problem that comes up. No problem at all here—he only has to worry about people possibly not getting the right money transaction if the network goes down. Manoj starts his job happily.
Soon, of course, the network has some problems. He asks one of the junior administrators for a network map so he can troubleshoot the network. This person tells him that the old senior administrator (who just got fired) had them with him and now no one can find them. Cashiers are calling every couple of minutes because they can’t get the necessary information they need to take care of their customers. What should he do?
CDP to the rescue! Thank God this bank has all Cisco routers and switches and that CDP is enabled by default on all Cisco devices. Also, luckily, the dissatisfied administrator who just got fired didn't turn off CDP on any devices before he left. All Manoj has to do now is to use the show cdp neighbor detail command to find all the information he needs about each device to help draw out the bank network .

Cisco Discovery Protocols Configuration commands

Router#show cdp Displays global CDP information (such as timers)
Router#show cdp neighbors Displays information about neighbors
Router#show cdp neighbors detail Displays more detail about the neighbor device
Router#show cdp entry word Displays information about the device named word
Router#show cdp entry * Displays information about all devices
Router#show cdp interface Displays information about interfaces that have CDP running
Router#show cdp interface x Displays information about specific interface x running CDP
Router#show cdp traffic Displays traffic information—packets in/out/version
Router(config)#cdp holdtime x Changes the length of time to keep CDP packets
Router(config)#cdp timer x Changes how often CDP updates are sent
Router(config)#cdp run Enables CDP globally (on by default)
Router(config)#no cdp run Turns off CDP globally
Router(config-if)#cdp enable Enables CDP on a specific interface
Router(config-if)#cdp enable Enables CDP on a specific interface
Router(config-if)#no cdp enable Turns off CDP on a specific interface
Router#clear cdp counters Resets traffic counters to 0
Router#clear cdp table Deletes the CDP table
Router#debug cdp adjacency Monitors CDP neighbor information
Router#debug cdp events Monitors all CDP events
Router#debug cdp ip Monitors CDP events specifically for IP
Router#debug cdp packets Monitors CDP packet-related information

Comments

Popular posts from this blog

How to update windows 10 to windows 11

Windows 11 is here. And now that you've had time to read our full review, you might be thinking about installing the upgrade on your own PC. We think most people should wait a few months to give Microsoft time to iron out Windows 11's biggest new-operating-system bugs and finish releasing updates for Windows' built-in apps. But you may want to install the operating system anyway because you want to test it or because you like to run the newest thing. Or maybe you'd like to install Windows 11 on an "unsupported" PC because Microsoft is not your parent and therefore cannot tell you what to do. We've pulled together all kinds of resources to create a comprehensive install guide to upgrading to Windows 11. This includes advice and some step-by-step instructions for turning on officially required features like your TPM and Secure Boot, as well as official and unofficial ways to skirt the system-requirement checks on unsupported PCs. I've had W...

Method of Subnetting Benefits of Subnetting

Benefits of subnetting Reduced network traffic One network will not access the data of other network without the use of router. Thus we can reduce the amount of data remain in one network. Less data less overhead, collision, or broadcast storm. Optimized network performance This is a result of reduced network traffic. Simplified management It's easier to identify and isolate network problems in a group of Smaller connected networks than within one gigantic network. Facilitated spanning of large geographical distances Because WAN links are significantly slower and more expensive than LAN links, a single large network that spans long distances can create problems in every area earlier listed. Connecting multiple smaller networks makes the system more efficient. Powers of 2 Powers of 2 are important to understand and memorize for use with IP subnetting. 2 1 2 2 9 512 2 2 4 2 10 1024 2 3 8 2 11 2048 2 4 16 2 12 4096 2 5...

Enhanced Interior Gateway Routing Protocol Configurations

Enhanced Interior Gateway Routing Protocol (EIGRP) EIGRP is the advance version of Cisco’s earlier version IGRP. Before you learn more about EIGRP let be familiar with IGRP. Interior Gateway Routing Protocol (IGRP) The Interior Gateway Routing Protocol (IGRP) is a Cisco-proprietary routing protocol for IP. it is a distance vector protocol. It uses a sophisticated metric based on bandwidth and delay. It uses triggered updates to speed-up convergence. It supports unequal-cost load balancing to a single destination. IGRP is Cisco proprietary uses bandwidth, delay, reliability, load, and MTU as its metrics (bandwidth and delay be default). IGRP's routing update period is every 90 seconds. Its hold-down period is 280 seconds, and its flush period is 630 seconds. It also supports triggered updates and load balancing across unequal-cost paths. IGRP requires an AS number in its router command; plus, when entering network numbers for the network command, they are enter...