Skip to content
Website under migration: We are moving to a new design. Some pages may look different or load slowly for a few days. Thank you for your patience.
SwitchFirewall
IPv4 Detecting…
IPv6 Detecting…

How to Use Cisco Discovery Protocol (CDP)

Last updated:

Cisco Discovery Protocol (CDP)

Cisco Discovery Protocol (CDP) is a Cisco proprietary Layer 2 protocol used to discover information about directly connected Cisco devices. This includes the device's hostname, hardware type, software version, and IP address. CDP is a passive protocol, meaning it does not require any configuration on neighboring devices.

CDP is used for a variety of purposes, including:

Enabling and Using CDP

To enable CDP on a Cisco device, use the following command:

cdp run

To view information about directly connected devices, use:

show cdp neighbors

CDP Diagram

CDP Diagram

Benefits of Cisco CDP

Limitations of Cisco CDP

Conclusion

Cisco CDP is a valuable and widely supported tool for network administrators and engineers. It helps quickly gather information about connected devices for troubleshooting, planning network changes, and improving security. However, be mindful of its limitations and configure it carefully to avoid potential security risks.