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:
To enable CDP on a Cisco device, use the following command:
cdp run
To view information about directly connected devices, use:
show cdp neighbors
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.