LLDP (Link Layer Discovery Protocol)
LLDP (Link Layer Discovery Protocol, IEEE 802.1AB) is the vendor-neutral discovery protocol: devices send their system name, port ID, port description, capabilities and management address to direct neighbours.
1. show lldp — running? If not, lldp run.
2. show lldp neighbors — expected neighbour on the port?
3. Nothing seen → show lldp interface <if> (tx/rx) and LLDP on the far device.
4. show lldp neighbors <if> detail — management address and port description.
5. Phones: LLDP-MED network policy gives the voice VLAN.
protocol enabled on both ends → advertisements sent on the link → neighbour entry created → device name and remote port match the design
Compare cabling and the peer interface, then verify VLAN/routing separately for the service path.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
lldp runPrimary Commands
Configuration and operational commands for this Topic.
lldp runReferenceEnable LLDP globally.
Use when: Enable standards-based LLDP when neighbor discovery is required, especially in multivendor environments.
Quick note: Verify with show lldp and show lldp interface; review interface policy.
no lldp runConfigureDisable LLDP globally.
Use when: Disable LLDP globally when design or security policy requires it.
Quick note: Prefer scoped interface direction controls when appropriate.
Cisco IOS / IOS XE · mixedlldp transmitReferenceAllow the interface to send LLDP.
Use when: Enable LLDP advertisements from an interface where transmission is intended and supported.
Quick note: Treat transmit and receive as independent directions and verify actual platform defaults.
Cisco IOS / IOS XE · mixedlldp receiveReferenceAllow the interface to receive LLDP.
Use when: Enable learning of LLDP advertisements from a directly connected peer where reception is intended.
Quick note: Verify peer transmit and local receive independently.
Cisco IOS / IOS XE · mixedShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show lldpShowDisplay global LLDP settings.
Use when: Check LLDP global operation before troubleshooting individual neighbors.
Quick note: Continue with show lldp interface and neighbor output.
show lldp neighborsShowDisplay neighbors learned through LLDP.
Use when: Map direct LLDP peers and local-to-remote port relationships quickly.
Quick note: Use detail output for TLVs/management information, then verify the actual service.
Cisco IOS / IOS XE · mixedshow lldp neighbors detailShowDisplay LLDP neighbor information.
Use when: Vendor-neutral topology discovery.
Quick note: Useful with mixed vendors.
IOS/IOS XE · mixedshow lldp interfaceShowDisplay LLDP status per interface.
Use when: Confirm the intended interface participates in LLDP in the required direction.
Quick note: If local state is correct, verify peer transmit/receive and physical adjacency.
Cisco IOS / IOS XE · mixedVerification & 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 First 30 seconds Verify boundary
Immediate answer: Identify the exact LLDP scope before changing state. Follow link/global policy → peer transmit/local receive → advertised identity/port/TTL → independent topology and traffic checks.
Verification chain: link/global policy → peer transmit/local receive → advertised identity/port/TTL → independent topology and traffic checks
Boundary: A local display shows only its own state. Read the Topic’s bounded example and recovery limits before testing.
Step 2 LLDP: bounded example and recovery Verify boundary
Illustrative observation: local Gi1/0/1 hears chassis ID 0011.2233.4455, remote port ID Gi1/0/48, bridge capability and 90 seconds remaining. These are advertised identity/location hints, not cryptographic identity or a packet-forwarding test.
In an isolated pair, disable only the peer’s LLDP transmit, keep data link up and observe the local entry age according to its actual lifetime. Restore exact transmit state and confirm renewed advertisements plus an independent bidirectional data test. Do not clear every neighbor to hide stale-state behavior. This example is not captured output or an executed device test.
Step 3 Verification and output interpretation Verify boundary
Use show lldp neighbors for the compact local-port/chassis/port relationship and show lldp neighbors detail for richer system, management and capability information. Confirm global status and per-interface transmit/receive state when expected neighbors are missing. Interpret the local interface and remote port ID together; a correct device name on the wrong local interface is still a topology discrepancy. A healthy entry should refresh consistently before TTL expiration and correspond to the expected physical connection. Compare LLDP with interface operational state and, where useful, MAC learning or CDP. A missing LLDP neighbor on an otherwise healthy link can simply mean the peer does not support or has disabled LLDP, so do not equate protocol absence with link failure.
Step 4 LLDP: first failed boundary Narrow the fault
No neighbor: inspect global/interface enablement, physical link and peer transmit/local receive independently. One-way visibility is possible without a broken user-data path. A table entry can persist until expiry after advertisements stop; compare elapsed time and actual TTL rather than declaring cabling showed by a stale row.
Different port-ID subtype or omitted optional TLV need not be a faulty neighbor. Compare both endpoints and physical inventory before inferring a mismatch. Avoid changing discovery exposure on untrusted edge ports merely to produce a complete topology table.
Step 5 Verification & troubleshooting Narrow the fault
Start with show lldp neighbors, then show lldp neighbors detail. If the peer is absent, verify show lldp, show lldp interface, interface state, global lldp run, and transmit/receive behavior on both ends.
Evidence · 4 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
The official Cisco source documents this command in a bounded Cisco product/release or feature context.
command output · Evidence referenceExpected LLDP neighbor is absentThe expected directly connected peer is not present in show lldp neighbors.
Per-interface LLDP state does not show receive enabled/active where the design expects neighbor learning.
command output · Evidence referenceUnexpected LLDP peer or port mappingLLDP identifies a different chassis/system or remote port than expected.
Often off by default on Cisco IOS: enable with lldp run. Per port, lldp transmit and lldp receive control each direction. LLDP-MED gives phones their voice VLAN and power needs.
show lldp— LLDP running and timers.show lldp neighbors— neighbour, local port, capabilities, remote port.show lldp neighbors <if> detail— system name, description, management address.show lldp interface <if>— transmit and receive enabled.show lldp traffic— frames sent and received.
ReferenceHow it works1 section · depth on demand
LLDP: observation versus configuration
Scope: supported IOS / IOS XE Ethernet LLDP, per-interface transmit and receive. lldp receive changes interface behavior; it is not a status query. Read show lldp, show lldp interface, show lldp neighbors and detail output using the deployed platform’s syntax.
Record local interface, advertised chassis ID, remote port ID, capabilities and remaining lifetime. A management address is an advertised attribute, not evidence it is reachable or belongs to an authenticated trusted device. LLDP does not install a production forwarding route.
Reference: Cisco IOS XE LLDP.
ReferenceImportant terms & boundaries5 sections · depth on demand
LLDP TLV model
LLDP advertisements are built from TLVs. Common information includes chassis ID, port ID, time-to-live, port/system description, system name, capabilities and management address when the peer advertises them. Optional TLVs vary by device and platform.
In depth
LLDP (IEEE 802.1AB) is the vendor-neutral discovery protocol. Cisco's LLDP configuration chapter for the ME 3800X/3600X lists the basic management TLVs as port description, system name, system description, system capabilities and management address. It adds the IEEE 802.1 port VLAN ID and the IEEE 802.3 MAC/PHY configuration TLVs. That chapter's default values are a 30-second timer, a 120-second hold time and a 2-second reinitialisation delay, with transmit and receive enabled per interface. On that platform LLDP is disabled globally by default, so check the default on your own platform.
LLDP-MED TLVs (chapter)
| TLV | Purpose |
|---|---|
| Capabilities | What the network device supports and has enabled |
| Network policy | Voice VLAN and Layer 2/3 priority settings for applications |
| Power management | Power source, priority and requirement |
| Inventory | Hardware, firmware, software, serial number, model, asset ID |
| Location | Civic address or ELIN for emergency calls |
By default the switch sends standard LLDP until an endpoint sends LLDP-MED. It then adds the MED TLVs and returns to standard LLDP once the endpoint's entry ages out.
Commands (chapter)
| Command | Scope | Effect |
|---|---|---|
lldp run | Global | Enable LLDP |
lldp timer <5–65534> | Global | Transmission interval |
lldp holdtime <0–65535> | Global | How long receivers keep the information |
lldp reinit <2–5> | Global | Initialisation delay on an interface |
lldp transmit / lldp receive | Interface | Send and receive separately |
lldp med-tlv-select <tlv> | Interface | Choose MED TLVs (inventory-management, location, network-policy, power-management) |
SW1(config)# lldp run
SW1(config)# interface GigabitEthernet1/0/12
SW1(config-if)# lldp transmit
SW1(config-if)# lldp receive
SW1(config)# interface GigabitEthernet1/0/48
SW1(config-if)# no lldp transmit
SW1# show lldp
Global LLDP Information:
Status: ACTIVE
LLDP advertisements are sent every 30 seconds
LLDP hold time advertised is 120 seconds
LLDP interface reinitialisation delay is 2 seconds
SW1# show lldp neighbors GigabitEthernet1/0/12 detail | include System Name|Port id|Management Addresses|IP:|Capabilities
SW1# show lldp traffic
Using transmit and receive separately
| Port type | Setting |
|---|---|
| Infrastructure links | Transmit and receive |
| Phone and AP ports | Transmit and receive, with LLDP-MED network policy |
| Internet and provider handoffs | no lldp transmit (receiving can still help identify the far end) |
| Untrusted guest ports | Both off |
LLDP data isn't authenticated. A device can advertise any name, so treat neighbour information as a hint for troubleshooting, not as proof of identity.
Documented example, not captured output.
Quick reference
LLDP (IEEE 802.1AB) is the vendor-neutral equivalent of CDP: devices advertise identity, port and capabilities to neighbors in TLVs. LLDP-MED adds information for endpoints such as voice VLAN and PoE needs for phones.
lldp run
show lldp neighbors
show lldp neighbors detail
interface Gi1/0/10
no lldp transmit
Documented example, not captured output.
LLDP is disabled by default on many Cisco IOS XE platforms; enable it for multi-vendor environments and for servers, which commonly speak LLDP.
State model and protocol mechanics
LLDP advertises structured TLVs to directly connected Ethernet neighbors and learns their corresponding advertisements. Core information includes chassis ID, port ID, time-to-live and optional system name, description, capabilities and management addressing. Unlike a routing protocol, LLDP does not negotiate a forwarding path or install routes; it maintains a local management view of who is attached to each participating interface. Transmit and receive behavior can be controlled independently, which means a device can legitimately send LLDP without learning neighbors or learn without advertising. Learned entries age according to their TTL and can remain visible for a short period after connectivity changes. LLDP’s value is therefore topology and identity context across vendors, especially when CDP is unavailable or intentionally not used.
Limits and common misconceptions
LLDP is not an authentication protocol and learned system names or chassis IDs should not be treated as cryptographically trusted identity. Neighbor visibility does not show that VLAN tagging, spanning tree, IP addressing or routing above the link is correct. Conversely, a link can forward perfectly with LLDP disabled. Because transmit and receive are independent, one side may see a neighbor while the other does not. LLDP and CDP can coexist; duplicate discovery entries do not mean two physical links exist. Use discovery data to answer “what appears directly connected here?” and then use the appropriate Layer 2/Layer 3 state to answer whether that connection is actually carrying the intended service.
ReferenceConfiguration & state1 section · depth on demand
Design and configuration model
Enable LLDP where standardized neighbor visibility is valuable, then decide whether each infrastructure, endpoint or external-facing interface should transmit, receive, both or neither. Preserve a deliberate information-exposure boundary: system descriptions, management addresses and capabilities are useful to operators but can also reveal topology details on untrusted links. Keep interface descriptions and inventory authoritative enough that LLDP can be used as corroborating live state rather than the only documentation source. On access networks with voice or specialized endpoints, additional LLDP extensions may influence endpoint behavior, so distinguish base neighbor discovery from application-specific TLVs. Timer tuning changes freshness and protocol overhead but should not be used to compensate for unstable links or inventory practices.
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 Switching → Layer 2 Discovery → LLDP. 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%Quick lookup tables
LLDP TLV quick map
Common LLDP information elements and what they mean
| TLV / field | Meaning | Operational use |
|---|---|---|
| Chassis ID | remote chassis identity | identify peer |
| Port ID | remote port identity | trace cable/port mapping |
| TTL | advertisement lifetime | understand neighbor aging |
| System Name | advertised device name | validate expected peer |
| System Description | platform/software description | platform context |
| System Capabilities | advertised roles | identify bridge/router/phone class |
| Management Address | optional management identity | candidate address for management verification |
LLDP · operational reference
Compact state and interpretation boundaries for fast lookup.
| LLDP element | Reference meaning |
|---|---|
| Chassis ID | Neighbor device/chassis identifier |
| Port ID | Remote attachment point |
| TTL | Lifetime of learned advertisement |
| Tx/Rx state | Whether local interface advertises and/or learns |
| Capabilities | Neighbor-reported functions, not forwarding proof |
Deep reference
Additional depth
Exposure and policy note
LLDP can expose useful topology and management metadata to a directly connected peer. Apply interface transmit/receive policy deliberately on untrusted edges while preserving discovery on links where multivendor operations or automation depend on it.