Cisco Discovery Protocol (CDP) from the name we can see that this is a Cisco proprietary, it is recommended that everyone learn CCNA when trying to be familiar with all the spelling do not simply write down the abbreviation!
CDP can collect hardware and protocol information for neighboring devices
CDP has two global parameters that can be set CDP timer (CDP timer) and CDP Holdtime (hold Time)
The CDP timer is the amount of time that the CDP packet is transmitted to all interfaces.
CDP hold time is the amount of time that a device retains packets received from neighboring devices.
Here are a few commands and differences under CDP
Show CDP neighbors function is to display information about a direct-attached device, including the hostname of the device, the port or interface that receives the packet, the hold time, the performance of the neighbor device, the device type, and the port ID of the connection
Show CDP neighbors detail is shown in more detail.
Compared with the above, the IP address of the direct-connect device and the iOS version number.
Show CDP entry * is the same as show CDP neighbors detail.
Show CDP Entry * Protocols shows the IP address of a direct-attached neighbor.
Show CDP Entry * Version shows the iOS version of the Direct connect neighbor.
Show CDP traffic shows the CDP packets sent and received by the device.
Show CDP interface shows the CDP information used by each interface, including the package type, timer, and hold time of the line.
Close CDP Service no CDP run, turn off CDP for an interface in interface mode no CDP enable
When you see the above command, imagine, give you a router and then need you according to the CDP information to configure the IP and cable connection type and device type, you should be able to make it!
Transferred from the Internet, the source of Baidu Library.
Introduction to Cisco Discovery Protocol (CDP) commands