CDP: discovering neighboring Cisco devices and building a network map
Sign in to read this lesson
CDP (Cisco Discovery Protocol) is a Cisco-proprietary data-link layer protocol that runs on all Cisco devices and is enabled by default. It discovers directly connected Cisco neighbors. show cdp neighbors shows the neighbor's name, our own and the neighbor's interface, the capability and the platform; with this information you can build a network map. show cdp neighbors detail also shows the IP address and the IOS version. Because this information is a security risk, CDP can be disabled on an interface with no cdp enable and on the whole device with no cdp run.
What you will learn
- CDP (Cisco Discovery Protocol) is Cisco proprietary, runs at the data-link layer and is enabled by default. It only discovers directly connected Cisco neighbors.
show cdp neighbors: Device ID (the neighbor's name), Local Intrfce (our interface), Holdtme, Capability (R = router, S = switch...), Platform, Port ID (the neighbor's interface).show cdp neighbors detailalso shows the neighbor's IP address and IOS version.- This information is useful but also a security risk: CDP can be disabled on one interface with
no cdp enableand on the whole device withno cdp run. - By default CDP advertisements are sent every 60 seconds and the holdtime is 180 seconds: if no advertisement arrives within that time, the neighbor is removed from the table.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.