Cisco Discovery Protocol (CDP) is enabled by default on Cisco devices but can be disabled globally or per interface for security reasons, since attackers could use CDP information (like IPs, IOS versions, or device types) to learn about the network.
You can check CDP status with show cdp, enable or disable it globally using cdp run or no cdp run, and control it per interface with cdp enable or no cdp enable. To view connected devices, use show cdp neighbors, which lists nearby Cisco devices and their details. The show cdp interface command displays which interfaces have CDP enabled and their connection status.
-