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.
LLDPBehaviour modelStandards-style neighbour discovery and show output.
Advertised attributesSupportedDevice ID, port ID, platform/capabilities where available.
TimersPartialDeterministic ageing, not full packet interval fidelity.
StandardCoverageNotes
IEEE 802.1ABBehaviour modelLLDP TLV concepts and neighbour table.
Cisco CDPBehaviour modelCDP-like neighbour visibility.
FeatureStatusNotes
Global enable/disableSupportedCDP/LLDP process state.
Interface enable/disableSupportedPer-interface participation.
LLDP timersSupportedAdvertisement interval and hold multiplier are stored and used for runtime state.
Neighbour tableSupportedBuilt from shared-link topology.
Capability displaySupportedDerived from device/interface metadata.
Packet TLV fidelityPartialImportant fields are represented; not byte-perfect.
CommandIOS-styleJunos-styleVyOS-styleNotes
cdp runSupportedn/an/aGlobal CDP.
no cdp enableSupportedn/an/aInterface disable.
lldp runSupportedPartialPartialGlobal LLDP.
no lldp runSupportedn/an/aIOS/IOS-XE command-tree gap closed.
set protocols lldp interface alln/aSupportedn/aJunos commit enables LLDP.
set protocols lldp interface ge-0/0/1 disablen/aSupportedn/aJunos per-interface disable.
set protocols lldp advertisement-interval 20n/aSupportedn/aJunos timer.
set protocols lldp hold-multiplier 4n/aSupportedn/aJunos hold time.
show cdp neighborsSupportedn/an/aCDP neighbour table.
show lldp neighborsSupportedSupportedSupportedLLDP neighbour table.
show lldp neighbors detailSupportedSupportedPartialDetailed LLDP neighbour table.

Discovery tables are derived from the topology and interface state. They are stable and useful for validating cabling assumptions in shared labs.

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
set service lldp interface eth0

Full TLV catalogues, power negotiation, LLDP-MED, and exact ageing races are not modelled.