Overview
The Cisco Discovery Protocol (CDP) is a protocol that enables Cisco devices to discover and share information about directly connected devices at the data link layer.
-
CDP gathers protocol addresses and platform information from neighboring devices.
-
CDP operates at the data link layer and allows devices supporting different Layer 3 protocols to learn about each other.
-
CDP periodically advertises device information, including addresses for SNMP messages and hold-time information.
Features and Operation
CDP runs over the data link layer and enables devices to exchange information even if they support different Layer 3 protocols. Each device configured for CDP sends periodic advertisements to a multicast address, advertising at least one address for SNMP messages and hold-time information. The advertisement and hold timers are configurable.
High Availability - Cisco NX-OS supports both stateful and stateless restarts and switchover for CDP. For more information on high availability, see the Cisco Nexus 9000 Series NX-OS High Availability and Redundancy Guide.
Virtualization Support - Cisco NX-OS supports one instance of CDP.
CDP advertises the following type-length-value fields (TLVs):
-
Device ID
-
Address
-
Port ID
-
Capabilities
-
Version
-
Platform
-
Native VLAN
-
Full or Half Duplex
-
MTU
-
SysName
-
SysObjectID
-
Management Address
-
Physical Location
-
VTP
CDP Version-2 (CDPv2) allows you to track instances where the native VLAN ID or port duplex states do not match between connecting devices.
All CDP packets include a VLAN ID. If you configure CDP on a Layer 2 access port, the CDP packets sent from that access port include the access port VLAN ID. If you configure CDP on a Layer 2 trunk port, the CDP packets sent from that trunk port include the lowest configured VLAN ID allowed on that trunk port. The trunk port can receive CDP packets that include any VLAN ID in the allowed VLAN list for that trunk port. For more information on VLANs, see the Cisco Nexus 9000 Series NX-OS Layer 2 Switching Configuration Guide.
CDP sends the VLAN Trunking Protocol (VTP) type-length-value field (TLV) if the following conditions are met:
-
CDP Version 2 is enabled.
-
The VTP feature is enabled.
-
A VTP domain name is configured.
You can view the VTP information with the show cdp neighbors detail command.
Default Settings
This table lists the default settings for CDP parameters.
| Parameters | Default |
|---|---|
| CDP | Enabled globally and on all interfaces |
| CDP version | Version 2 |
| CDP device ID | Serial number |
| CDP timer | 60 seconds |
| CDP hold timer | 180 seconds |

Feedback