
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.CDP 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.The Basic CDP Command To Display Information About The Directly Connected Neighbor Is "show Cdp Neighbor".R2show Cdp NeighborCapability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, R Repeater Device ID Local Intrfce Holdtme Capability Platform Port ID R1 BRI0 167 R 2521 Dialer1This Command Is Particularly Helpful When Troubleshooting Cisco Switches. Theres 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 Devices Hardware Platform, And The Local Interface That Is Connected To The Remote Device.CDP 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. Cdp Timer Defines How Often CDP Packets Are Transmitted, And Cdp Holdtime Defines How Long A Device Will Hold A Received Packet.To Turn CDP Off For The Entire Router, Run No Cdp Run. To View The Current Global Status Of CDP, Run Show Cdp. R2show CdpGlobal CDP Information: Sending CDP Packets Every 60 Seconds Sending A Holdtime Value Of 180 Seconds CDP Is Running By Default. R2conf TR2(config)cdp Timer 45R2(config)cdp Holdtime 100 The CDP Timers Are Changed. R2show CdpGlobal CDP Information: Sending CDP Packets Every 45 Seconds Sending A Holdtime Value Of 100 Seconds The CDP Values Have Been Successfully Changed. Show Cdp Interface Will Give The Timer Information For Each Interface On The Router.R2conf TR2(config)interface Bri0R2(config-if)no Cdp Enable CDP Is Disabled On The BRI Interface. This Does NOT Have To Be Done To Keep The Line From Dialing. R2conf TR2(config)no Cdp Run CDP Is Disabled Globally. R2show Cdp CDP Is Not Enabled CDP Has Been Successfully Disabled.Show Cdp Neighbor Gives You A Great Deal Of Information, But What If You Need The Neighbors IP Address? Just Run Show Cdp Neighbor Detail. You Will Get Even More Information About That Directly Connected Neighbor, Including Its IP Address.SW2show Cdp Neighbor Detail-------------------------Device ID: R4Entry Address(es): IP Address: 172.12.23.4Platform: Cisco 2520, Capabilities: RouterInterface: FastEthernet04, Port ID (outgoing Port): Ethernet0Holdtime : 158 SecThe 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!