In this article we will discuss Configure and Verify CDP, will make brief discussion on Configure and Verify CDP, In last article we discuss about CDP Overview.
For Cisco devices, CDP is enabled by default. For security reasons, it may be desirable to disable CDP on a network device globally, or per interface. With CDP, an attacker can gather valuable insight about the network layout, such as IP addresses, IOS versions, and types of devices.
To verify the status of CDP and display information about CDP, enter the show cdpcommand, as displayed in Example 1.
To enable CDP globally for all the supported interfaces on the device, enter cdp run in the global configuration mode. CDP can be disabled for all the interfaces on the device with the no cdp run command in the global configuration mode.
To disable CDP on a specific interface, such as the interface facing an ISP, enter no cdp enablein the interface configuration mode. CDP is still enabled on the device; however, no more CDP advertisements will be sent out that interface.
To verify the status of CDP and display a list of neighbors, use the show cdp neighbors Command in the privileged EXEC mode. The show cdp neighbors command displays important information about the CDP neighbors. Currently, this device does not have any neighbors because it is not physically connected to any devices, as indicated by the results of the show cdp neighbors command.
Use the show cdp interface command to display the interfaces that are CDP enabled on a device. The status of each interface is also displayed.