CDP and LLDP
CDP and LLDP make physical and logical adjacency visible. netverdict models neighbour advertisements, device/interface identity, capabilities, and show output used in labs and diagnostics.
Support level
Section titled “Support level”| Area | Level | Notes |
|---|---|---|
| CDP | Behaviour model | Cisco-style neighbour discovery and show output. CDPv2 frames are on the wire in a capture (Packet Lens), decoded by Wireshark. |
| LLDP | Behaviour model | Standards-style neighbour discovery and show output. LLDPDUs are on the wire in a capture (Packet Lens), decoded by Wireshark. |
| Advertised attributes | Supported | Device ID, port ID, platform/capabilities where available. |
| Timers | Partial | Fixed intervals: CDP every 60 s, held 180 s; LLDP every 30 s, held 120 s. Neighbours age out when the link goes. |
Standards coverage
Section titled “Standards coverage”| Standard | Coverage | Notes |
|---|---|---|
| IEEE 802.1AB | Behaviour model | Mandatory TLVs, basic-management TLVs, shutdown LLDPDU, neighbour table. |
| Cisco CDP | Behaviour model | CDP-like neighbour visibility. |
Feature matrix
Section titled “Feature matrix”| Feature | Status | Notes |
|---|---|---|
| Global enable/disable | Supported | CDP/LLDP process state. |
| Interface enable/disable | Supported | Per-interface participation. |
| CDP/LLDP timers | No effect | cdp timer, cdp holdtime, lldp timer, lldp holdtime, and Junos advertisement-interval / hold-multiplier are accepted and change nothing. |
| Neighbour table | Supported | Learned from advertisements; single hop; entries age out. |
| Capability display | Supported | Derived from device/interface metadata. |
| Packet TLV fidelity | Supported | Real frames with hostname, port, addresses, capabilities, platform and native VLAN. No version or duplex TLV. |
Vendor command matrix
Section titled “Vendor command matrix”| Command | IOS-style | Junos-style | VyOS-style | Notes |
|---|---|---|---|---|
cdp run | Supported | n/a | n/a | Global CDP. |
no cdp enable | Supported | n/a | n/a | Interface disable. |
lldp run | Supported | Partial | Not modelled | Global LLDP. Junos: set protocols lldp interface ... (below). VyOS set service lldp is not read. |
no lldp run | Supported | n/a | n/a | IOS/IOS-XE command-tree gap closed. |
set protocols lldp interface all | n/a | Supported | n/a | LLDP on every port. With no protocols lldp lines, LLDP is off. |
set protocols lldp interface ge-0/0/1 | n/a | Supported | n/a | Without interface all, only the named ports run LLDP. |
set protocols lldp interface ge-0/0/1 disable | n/a | Supported | n/a | Junos per-interface disable. |
set protocols lldp advertisement-interval 20 | n/a | No effect | n/a | Accepted and reported; the timers are fixed. |
set protocols lldp hold-multiplier 4 | n/a | No effect | n/a | Accepted and reported; the timers are fixed. |
show cdp neighbors | Supported | n/a | n/a | CDP neighbour table. |
show lldp neighbors | Supported | Supported | Supported | LLDP neighbour table. |
show lldp neighbors detail | Supported | Supported | Partial | Detailed LLDP neighbour table. |
Behaviour notes
Section titled “Behaviour notes”Each enabled port advertises on a fixed interval and the neighbour records it. Discovery is single hop: frames are never forwarded. Cut a link and the neighbour ages out after its hold time. The configured timers have no effect.
Examples
Section titled “Examples”Canonical example
configure terminalcdp runlldp runinterface GigabitEthernet0/0 lldp transmit lldp receiveendshow cdp neighborsshow lldp neighborsVendor styles
IOS-style
cdp runlldp runinterface GigabitEthernet0/0 cdp enable lldp transmit lldp receiveJunos-style
set protocols lldp interface ge-0/0/0set protocols lldp-med interface ge-0/0/0VyOS-style
# Not read yet: VyOS LLDP lines are not modelled.set service lldp interface eth0Known limits
Section titled “Known limits”Configurable timers, version and duplex TLVs, power negotiation, LLDP-MED, and VyOS LLDP config are not modelled.