Skip to content

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.

AreaLevelNotes
CDPBehaviour modelCisco-style neighbour discovery and show output. CDPv2 frames are on the wire in a capture (Packet Lens), decoded by Wireshark.
LLDPBehaviour modelStandards-style neighbour discovery and show output. LLDPDUs are on the wire in a capture (Packet Lens), decoded by Wireshark.
Advertised attributesSupportedDevice ID, port ID, platform/capabilities where available.
TimersPartialFixed intervals: CDP every 60 s, held 180 s; LLDP every 30 s, held 120 s. Neighbours age out when the link goes.
StandardCoverageNotes
IEEE 802.1ABBehaviour modelMandatory TLVs, basic-management TLVs, shutdown LLDPDU, neighbour table.
Cisco CDPBehaviour modelCDP-like neighbour visibility.
FeatureStatusNotes
Global enable/disableSupportedCDP/LLDP process state.
Interface enable/disableSupportedPer-interface participation.
CDP/LLDP timersNo effectcdp timer, cdp holdtime, lldp timer, lldp holdtime, and Junos advertisement-interval / hold-multiplier are accepted and change nothing.
Neighbour tableSupportedLearned from advertisements; single hop; entries age out.
Capability displaySupportedDerived from device/interface metadata.
Packet TLV fidelitySupportedReal frames with hostname, port, addresses, capabilities, platform and native VLAN. No version or duplex TLV.
CommandIOS-styleJunos-styleVyOS-styleNotes
cdp runSupportedn/an/aGlobal CDP.
no cdp enableSupportedn/an/aInterface disable.
lldp runSupportedPartialNot modelledGlobal LLDP. Junos: set protocols lldp interface ... (below). VyOS set service lldp is not read.
no lldp runSupportedn/an/aIOS/IOS-XE command-tree gap closed.
set protocols lldp interface alln/aSupportedn/aLLDP on every port. With no protocols lldp lines, LLDP is off.
set protocols lldp interface ge-0/0/1n/aSupportedn/aWithout interface all, only the named ports run LLDP.
set protocols lldp interface ge-0/0/1 disablen/aSupportedn/aJunos per-interface disable.
set protocols lldp advertisement-interval 20n/aNo effectn/aAccepted and reported; the timers are fixed.
set protocols lldp hold-multiplier 4n/aNo effectn/aAccepted and reported; the timers are fixed.
show cdp neighborsSupportedn/an/aCDP neighbour table.
show lldp neighborsSupportedSupportedSupportedLLDP neighbour table.
show lldp neighbors detailSupportedSupportedPartialDetailed LLDP neighbour table.

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.

Canonical example
configure terminal
cdp run
lldp run
interface GigabitEthernet0/0
lldp transmit
lldp receive
end
show cdp neighbors
show lldp neighbors

Vendor styles

IOS-style
cdp run
lldp run
interface GigabitEthernet0/0
cdp enable
lldp transmit
lldp receive
Junos-style
set protocols lldp interface ge-0/0/0
set protocols lldp-med interface ge-0/0/0
VyOS-style
# Not read yet: VyOS LLDP lines are not modelled.
set service lldp interface eth0

Configurable timers, version and duplex TLVs, power negotiation, LLDP-MED, and VyOS LLDP config are not modelled.