Skip to content

CDP

Cisco Discovery Protocol (CDP) is a proprietary Layer 2 neighbor discovery protocol that enables Cisco devices to advertise and learn information about directly connected Cisco devices. It operates independently of Layer 3 protocols and provides valuable network topology information including device types, software versions, capabilities, and platform details. CDP is essential for network discovery, troubleshooting, and management tools, though it can be selectively disabled on interfaces or globally for security considerations.

Diagram

Diagram

Classes

configuration (iosxe.devices)

NameTypeConstraintMandatoryDefault Value
cdpClass[cdp]No

cdp (iosxe.devices.configuration)

NameTypeConstraintMandatoryDefault Value
holdtimeIntegermin: 10, max: 255No
timerIntegermin: 5, max: 254No
runBooleantrue, falseNo
filter_tlvStringNo
tlv_listsList[tlv_lists]No

tlv_lists (iosxe.devices.configuration.cdp)

NameTypeConstraintMandatoryDefault Value
nameStringYes
vtp_mgmt_domainBooleantrue, falseNo
cosBooleantrue, falseNo
duplexBooleantrue, falseNo
trustBooleantrue, falseNo
versionBooleantrue, falseNo

Examples

iosxe:
devices:
- name: Device1
configuration:
cdp:
holdtime: 15
timer: 10
run: true