The Cisco Discovery Protocol (CDP) sure looks simple enough, but there are quite a few details to know for success on the CCNA exam. In your CCNP studies, you’ll be introduced to additional uses for CDP, but for now it’s enough to know that CDP is designed to give you information regarding directly connected Cisco routers and switches.\nCDP runs by default between all directly connected Cisco devices. CDP is also a Cisco-proprietary protocol – if the directly connected device is not a Cisco device, you won’t see the information you wanted.\nThe basic CDP command to display information about the directly connected neighbor is “show cdp neighbor”.\nR2#show cdp neighbor\nCapability Codes: R – Router, T – Trans Bridge, B – Source Route Bridge\nS – Switch, H – Host, I – IGMP, r – Repeater\nDevice ID Local Intrfce Holdtme Capability Platform Port ID\nR1 BRI0 167 R 2521 Dialer1\nThis command is particularly helpful when troubleshooting Cisco switches. There’s no need to trace wiring in a rack of Cisco devices to see what routers are connected to a Cisco switch when show cdp neighbor can be used. In the above output, you can see the remote device’s hostname, what interface on the remote device is connected to the local device, the capability of the remote device, the remote device’s hardware platform, and the local interface that is connected to the remote device.\nCDP can be disabled at both the global and interface level. To disable CDP at the interface level, run no cdp enable on the interface, and cdp enable to turn it back on.\ncdp timer defines how often CDP packets are transmitted, and cdp holdtime defines how long a device will hold a received packet.\nTo turn CDP off for the entire router, run no cdp run. To view the current global status of CDP, run show cdp.\nR2#show cdp\nGlobal CDP information:\nSending CDP packets every 60 seconds\nSending a holdtime value of 180 seconds\nCDP is running by default.\nR2#conf t\nR2(config)#cdp timer 45\nR2(config)#cdp holdtime 100\nThe CDP timers are changed.\nR2#show cdp\nGlobal CDP information:\nSending CDP packets every 45 seconds\nSending a holdtime value of 100 seconds\nThe CDP values have been successfully changed. “show cdp interface” will give the timer information for each interface on the router.\nR2#conf t\nR2(config)#interface bri0\nR2(config-if)#no cdp enable\nCDP is disabled on the BRI interface. This does NOT have to be done to keep the line from dialing.\nR2#conf t\nR2(config)#no cdp run\nCDP is disabled globally.\nR2#show cdp\n% CDP is not enabled\nCDP has been successfully disabled.\nShow cdp neighbor gives you a great deal of information, but what if you need the neighbor’s IP address? Just run show cdp neighbor detail. You will get even more information about that directly connected neighbor, including its IP address.\nSW2#show cdp neighbor detail\n————————-\nDevice ID: R4\nEntry address(es):\nIP address: 220.127.116.11\nPlatform: cisco 2520, Capabilities: Router\nInterface: FastEthernet0\/4, Port ID (outgoing port): Ethernet0\nHoldtime : 158 sec\nThe details of CDP are important to you on the job and in the CCNA exam room. When you find yourself negotiating a badly documented network, you can use CDP to “walk” through the network and create a network map for your client as well. Sometimes the simplest protocols are the most helpful!