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
NameTypeConstraintMandatoryDefault Value
cdpClass[cdp]No

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)

Section titled “tlv_lists (iosxe.devices.configuration.cdp)”
NameTypeConstraintMandatoryDefault Value
nameStringYes
vtp_mgmt_domainBooleantrue, falseNo
cosBooleantrue, falseNo
duplexBooleantrue, falseNo
trustBooleantrue, falseNo
versionBooleantrue, falseNo

cdp run
cdp holdtime 15
cdp timer 10
cdp filter-tlv-list MY-TLV-LIST
cdp tlv-list MY-TLV-LIST
duplex
vtp-mgmt-domain
cos
trust
version
iosxe:
devices:
- name: Device1
configuration:
cdp:
holdtime: 15
timer: 10
run: true
filter_tlv_list: MY-TLV-LIST
tlv_lists:
- name: MY-TLV-LIST
duplex: true
vtp_mgmt_domain: true
cos: true
trust: true
version: true

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
NameTypeConstraintMandatoryDefault Value
cdpClass[cdp]No

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)

Section titled “tlv_lists (iosxe.devices.configuration.cdp)”
NameTypeConstraintMandatoryDefault Value
nameStringYes
vtp_mgmt_domainBooleantrue, falseNo
cosBooleantrue, falseNo
duplexBooleantrue, falseNo
trustBooleantrue, falseNo
versionBooleantrue, falseNo

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