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.
LLDP & CDP TLV Reference
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.
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.
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
Operational reference
Fast context before you go deeper.
show lldp neighbors detailVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
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.
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
lldporcdp— TLVs decoded one by one.
ReferenceWhat it is1 section · depth on demand
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:
| Type | TLV | Content |
|---|---|---|
| 1 | Chassis ID | Identifies the device, usually by a MAC address |
| 2 | Port ID | Identifies the sending port |
| 3 | Time to live | How long the receiver should keep the information |
| 0 | End | Marks the end of the frame |
Optional TLVs:
| Type | TLV | Content |
|---|---|---|
| 4 | Port description | The interface description |
| 5 | System name | The hostname |
| 6 | System description | Model and software version |
| 7 | System capabilities | Router, bridge, phone, access point — supported and enabled |
| 8 | Management address | An address for managing the device |
| 127 | Organisation-specific | Extensions: 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:
| Type | TLV | Content |
|---|---|---|
| 0x0001 | Device ID | Hostname |
| 0x0002 | Addresses | IP addresses of the sending interface |
| 0x0003 | Port ID | The sending port |
| 0x0004 | Capabilities | Router, switch, phone, and so on |
| 0x0005 | Software version | IOS version string |
| 0x0006 | Platform | Hardware model |
| 0x0009 | VTP management domain | The VTP domain name |
| 0x000A | Native VLAN | Native VLAN of the sending port |
| 0x000B | Duplex | Duplex 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
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
| TLV | Carries | Use |
|---|---|---|
| Chassis ID, Port ID, TTL | Mandatory identity and hold time | Neighbour identification |
| System name, description | Hostname, platform, software | Inventory |
| System capabilities | Bridge, router, telephone, WLAN AP | Device type |
| Management address | IP address for management | Reachability for tools |
| Port VLAN ID (802.1) | Native VLAN | Detecting mismatches |
| MAC/PHY config (802.3) | Speed, duplex, autonegotiation | Detecting mismatches |
| MED network policy | Voice VLAN, CoS, DSCP | Phone provisioning |
| MED power | PoE source, priority, wattage | Power negotiation |
| MED location | Civic address or ELIN | Emergency calls |
CDP TLVs (IOS XE system management guide)
| TLV | Carries |
|---|---|
| Device-ID | Hostname |
| Address | Management and interface addresses |
| Port-ID | Sending port |
| Capabilities | Router, switch, phone, … |
| Version, Platform | Software and hardware |
| Native VLAN, Duplex | For mismatch detection (CDPv2) |
| VTP Management Domain | VTP 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.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
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.