Pcornel
Networking · Network & Protocols › Ethernet & VLANs

LLDP & CDP TLV Reference

Cheat sheet · https://pcornel.dk/topic.php?topic=287

Back to the Topic

Answer

CDP and LLDP messages are built from TLVs — type, length, value — each carrying one fact about the sender: its name, the sending port, capabilities, management address, and for phones the voice VLAN and power.

Remember

A missing field means the neighbour did not send that TLV; optional TLVs differ by vendor. LLDP always carries chassis ID, port ID and time to live. CDP carries native VLAN and duplex, which is how a Cisco switch can log a mismatch.

First checks

  • show lldp neighbors detail — every TLV received per neighbour.
  • show cdp neighbors detail — the CDP equivalents, including native VLAN and duplex.
  • show lldp interface <interface> / show cdp interface <interface> — sending and receiving enabled?
  • Capture filter lldp or cdp — TLVs decoded one by one.

Commands

show cdp neighbors detail
show lldp neighbors detail

Verify in this order

sender includes the TLVs → frame received on the port → TLVs stored per neighbour → the fields needed (identity, port, voice VLAN, power) present and correct

Where it usually breaks

media/optics → administrative state → carrier/line protocol → negotiation → error/drop counters → neighbor discovery → upper-layer adjacency

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=287

Confirmation

Confirm action

Continue?