The Cisco Discovery Protocol (CDP) is a proprietary Data Link Layer protocol developed by Cisco Systems and is used in almost all the Cisco Devices. It is used to share the information about the other directly connected Cisco devices, such as the operating system version and IP address. The CDP Protocol is Mainly used for troubleshooting purposes in networks. The CDP is a proprietary Data link Layer Protocol developed by Cisco, where HP, IBM uses LLDP (Link Layer Discovery Protocol)
- Cisco devices send CDP announcements to the multicast destination address (MAC)01-00-0c-cc-cc-cc, out each connected network interface.
- Uses MAC Multicast addresses to send and retrieve the packets
- A CDP enabled device sends CDP Notifications every 60 seconds
- Received packets are stored internally
- The CDP table information is refreshed each time an announcement is received, and the holdtime for that entry is reinitialized.
- The holdtime specifies the lifetime of an entry in the table – if no announcements are received from a device for a period in excess of the holdtime, the device information is discarded (default 180 seconds.
- The information contained in CDP announcements varies by the type of device and the version of the operating system running on it. This information may include the operating system version, hostname, every address (i.e. IP address) from all protocol(s) configured on the port where CDP frame is sent.
- Recommended to be disabled in an secure environment (i.e. DMZ)
- When Cisco Discovery Protocol is enabled on ESX/ESXi, it will include information on which vmnics are connected to which switch ports.
- It is impossible to identify the switch port for the ESX NICs without “follow the cable”, this is where CDP was implemented and was available since the release of ESX 3.5
- Helpful for troubleshooting the Network related issues and helps you locating the physical switch to which the ESX Server is connected to.
- listen (default)
Advertise mode – The ESXi/ESX host makes information about the vSwitch available to the Cisco switch administrator, but does not detect and displays information about the Cisco switch.
Both mode – The ESXi/ESX host detects and displays information about the associated Cisco switch and makes information about the vSwitch available to the Cisco switch administrator.
- Connect to the vCenter Server/Virtual Center or ESX host using the vSphere/VI Client.
- Select the ESX host in the Inventory.
- Click the Configuration tab.
- Click Networking.
- Click the Info icon to the right of the vSwitch, under Properties. For example:
- A tool tip opens with the Cisco Discovery Protocol information for the selected physical network interface. For example:
- Connect to vCenter Server using the vSphere Client.
- In the vCenter Server home page, click Networking.
- Right-click the vDS and click Edit Settings.
- Select Advanced under Properties.
- Using the checkbox and the dropdown, change the CDP settings.