Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

LLDP & CDP TLV Reference

Direct 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.

When to use this

Use it to read show cdp neighbors detail and show lldp neighbors detail, and when a field is empty or a phone does not learn its VLAN or power level.

First 30 seconds

1. show lldp neighbors detail or show cdp neighbors detail — is the field you need present?

2. Missing → the neighbour does not send it; check its configuration.

3. Phone in the wrong VLAN → is the voice VLAN (LLDP-MED network policy or CDP) being sent on that port?

4. Mismatch logged → compare the neighbour's native VLAN or duplex with the local port.

Operational verification

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

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE
Key commandshow lldp neighbors detail
Scope / prerequisiteUse it to read show cdp neighbors detail and show lldp neighbors detail, and when a field is empty or a phone does not …
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational verification Verify boundary
show lldp neighbors detail
show cdp neighbors detail
show lldp interface GigabitEthernet1/0/10
show cdp interface GigabitEthernet1/0/10

The detail commands print every TLV received from each neighbour: chassis and port ID, system name and description, capabilities, management address, and for CDP the platform, native VLAN and duplex. The interface commands show whether sending and receiving are enabled on the port.

In a capture, filter on lldp or cdp; each TLV is decoded separately.

Known-good: the neighbour's name and port ID match the documentation for that cable, and the TLVs needed by attached phones or access points are present.

Step 2 Failure isolation workflow Narrow the fault
  • A field is empty for a neighbour. It did not send that TLV; optional TLVs differ by vendor and configuration.
  • The system name is missing; only a MAC address is shown. The neighbour sends just the mandatory TLVs.
  • A phone lands in the data VLAN. The voice VLAN information — LLDP-MED network policy or CDP — is not being sent on that port.
  • A device gets less power than it needs. Power negotiation TLVs are disabled or unsupported on one side.
  • The log reports native VLAN or duplex mismatch. The value in the neighbour's CDP TLV differs from the local port.
  • The port ID is a number or MAC address, not an interface name. The neighbour's vendor encodes it differently; use the port description TLV.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

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.

Key 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.
ReferenceWhat it is1 section · depth on demand

Mechanics & mental model

CDP and LLDP messages are built from TLVs — type, length, value. Each TLV carries one piece of information about the sender: its name, the port it sends from, its capabilities, and so on. This topic lists the TLVs that matter and what they are used for.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

The lines in show cdp neighbors detail and show lldp neighbors detail are these TLVs, one by one. Knowing which TLV carries what explains why some fields are empty for some neighbours — the sender simply did not include that TLV — and how phones and access points learn their VLAN and power settings.

ReferenceHow it works1 section · depth on demand

How it works

LLDP. Each TLV starts with a 7-bit type and a 9-bit length. Four are mandatory in every frame:

TypeTLVContent
1Chassis IDIdentifies the device, usually by a MAC address
2Port IDIdentifies the sending port
3Time to liveHow long the receiver should keep the information
0EndMarks the end of the frame

Optional TLVs:

TypeTLVContent
4Port descriptionThe interface description
5System nameThe hostname
6System descriptionModel and software version
7System capabilitiesRouter, bridge, phone, access point — supported and enabled
8Management addressAn address for managing the device
127Organisation-specificExtensions: port VLAN ID, link speed and duplex, maximum frame size, power, and LLDP-MED

LLDP-MED, carried in type 127, is what tells a phone its voice VLAN and priority settings and negotiates PoE power.

CDP uses 16-bit types. The common ones:

TypeTLVContent
0x0001Device IDHostname
0x0002AddressesIP addresses of the sending interface
0x0003Port IDThe sending port
0x0004CapabilitiesRouter, switch, phone, and so on
0x0005Software versionIOS version string
0x0006PlatformHardware model
0x0009VTP management domainThe VTP domain name
0x000ANative VLANNative VLAN of the sending port
0x000BDuplexDuplex of the sending port

Because CDP carries native VLAN and duplex, a Cisco switch compares them with its own port and logs a mismatch. LLDP on Cisco IOS can be limited to chosen TLVs with lldp tlv-select.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

LLDP and CDP TLVs

Both discovery protocols build their messages from TLVs: type, length and value. Cisco's LLDP and LLDP-MED configuration chapter lists the LLDP TLVs a switch sends:

  • Basic management TLVs: port description, system name, system description, system capabilities and management address.
  • IEEE organisational TLVs: the 802.1 port VLAN ID and the 802.3 MAC/PHY configuration.
  • LLDP-MED TLVs: capabilities, network policy (voice VLAN and priority), power management, inventory and location (civic address or ELIN).

LLDP TLVs

TLVCarriesUse
Chassis ID, Port ID, TTLMandatory identity and hold timeNeighbour identification
System name, descriptionHostname, platform, softwareInventory
System capabilitiesBridge, router, telephone, WLAN APDevice type
Management addressIP address for managementReachability for tools
Port VLAN ID (802.1)Native VLANDetecting mismatches
MAC/PHY config (802.3)Speed, duplex, autonegotiationDetecting mismatches
MED network policyVoice VLAN, CoS, DSCPPhone provisioning
MED powerPoE source, priority, wattagePower negotiation
MED locationCivic address or ELINEmergency calls

CDP TLVs (IOS XE system management guide)

TLVCarries
Device-IDHostname
AddressManagement and interface addresses
Port-IDSending port
CapabilitiesRouter, switch, phone, …
Version, PlatformSoftware and hardware
Native VLAN, DuplexFor mismatch detection (CDPv2)
VTP Management DomainVTP domain name

LLDP-MED behaviour (chapter)

The switch sends standard LLDP until it receives LLDP-MED from an endpoint. It then adds the MED TLVs, and stops again after the endpoint's entry ages out.

SW1(config)# interface GigabitEthernet1/0/7
SW1(config-if)# lldp med-tlv-select network-policy
SW1(config-if)# lldp med-tlv-select power-management
SW1(config)# network-policy profile 10
SW1(config-network-policy)# voice vlan 120 cos 5
SW1(config)# interface GigabitEthernet1/0/7
SW1(config-if)# network-policy 10
SW1# show lldp neighbors GigabitEthernet1/0/7 detail | include Capabilities|Network Policy|VLAN|Power|Model
host$ sudo tcpdump -ni eth0 -v -c 1 ether proto 0x88cc

An LLDP frame uses EtherType 0x88cc, and tcpdump decodes every TLV in verbose mode. That is useful when a phone and a switch disagree about the voice VLAN.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → LLDP & CDP TLV Reference. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
lldp tlvcdp tlv
Embedded quick reference

Operational notes

Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.

LLDP/CDP TLVs

Neighbor identity/port/capabilities.

30-second lookup

  • Open Packet Field Explorer for field-level metadata.
  • Use Packet Decoders for bit/flag values where relevant.
  • Use Paste Output / Structured Parser for CLI evidence.
  • Use Packet Filters to prove the wire boundary.

Evidence rule

A decoded field proves what is present in that packet/output at that moment. Continue through the verification chain before concluding end-to-end behavior.

Confirmation

Confirm action

Continue?