CDP
IOS-XECisco 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
Section titled “Diagram”Classes
Section titled “Classes”configuration (iosxe.devices)
Section titled “configuration (iosxe.devices)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| cdp | Class | [cdp] | No |
cdp (iosxe.devices.configuration)
Section titled “cdp (iosxe.devices.configuration)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| holdtime | Integer | min: 10, max: 255 | No | |
| timer | Integer | min: 5, max: 254 | No | |
| run | Boolean | true, false | No | |
| filter_tlv | String | No | ||
| tlv_lists | List | [tlv_lists] | No |
tlv_lists (iosxe.devices.configuration.cdp)
Section titled “tlv_lists (iosxe.devices.configuration.cdp)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| vtp_mgmt_domain | Boolean | true, false | No | |
| cos | Boolean | true, false | No | |
| duplex | Boolean | true, false | No | |
| trust | Boolean | true, false | No | |
| version | Boolean | true, false | No |
Sample Configuration
Section titled “Sample Configuration”cdp runcdp holdtime 15cdp timer 10cdp filter-tlv-list MY-TLV-LISTcdp tlv-list MY-TLV-LIST duplex vtp-mgmt-domain cos trust versionExamples
Section titled “Examples”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: trueExamples
Section titled “Examples”iosxe: devices: - name: Device1 configuration: cdp: holdtime: 15 timer: 10 run: true