LLDP Protocol: Cisco Configuration, TLVs and CDP Comparison

LLDP is the standards-based way for directly connected routers, switches, access points, phones, and other devices to advertise who they are and which ports connect them.

LLDPIEEE 802.1ABTLVLLDP-MED
2-part learning path

Neighbor Discovery Learning Path

Learn the Cisco-specific and open-standard protocols used to identify directly connected network devices.

Part 2 of 2
Lesson overview

In This Lesson

Use LLDP to build a vendor-neutral view of directly connected devices. The lesson connects TLVs, configuration, verification, LLDP-MED, and troubleshooting.

  1. What is LLDP?
  2. What is Link Layer Discovery Protocol?
  3. How LLDP TLVs work
  4. LLDP topology example
  5. Configure LLDP on Cisco IOS
  6. Verify LLDP neighbors
  7. Advertise an interface description
From idea to operation

Quick Learning Map

Keep these three decisions in view as you work through the detailed lesson.

1

Enable advertisements

Allow devices to transmit and receive LLDP on the intended interfaces.

2

Read the TLVs

Interpret identity, port, capability, management, and optional media details.

3

Validate the topology

Compare learned neighbors with cabling plans and operational expectations.

Fast orientation

LLDP Protocol: Cisco Configuration, TLVs and CDP Comparison at a Glance

Use this summary to establish the big picture before moving into commands, examples, and troubleshooting.

Standard

LLDP is IEEE 802.1AB and works across vendors.

Information unit

TLVs carry chassis, port, system, management, and capability data.

Extension

LLDP-MED adds information useful to phones and other media endpoints.

What is LLDP?

Link Layer Discovery Protocol (LLDP) is the vendor-neutral IEEE 802.1AB protocol that directly connected devices use to advertise identity, interface, capability and management information. LLDP does not discover devices beyond the local Layer 2 link and does not configure or route traffic.

What is Link Layer Discovery Protocol?

Link Layer Discovery Protocol (LLDP) is an IEEE 802.1AB Layer 2 protocol that allows a device to advertise information to its directly connected neighbors. Unlike Cisco-proprietary CDP, LLDP is designed for multivendor interoperability.

LLDP advertisements are link-local and are not routed. A switch stores received information in its LLDP neighbor table until the advertised time-to-live expires. Because the protocol works at Layer 2, discovery can operate even when the connected ports do not yet have working IP connectivity.

CDP and LLDP comparison showing Cisco proprietary CDP and IEEE 802.1AB LLDP between directly connected network devices
LLDP provides standards-based direct-neighbor discovery across vendors, while CDP serves Cisco-focused environments. Original educational graphic by Networking Essentials.

IEEE standard

Cisco, Juniper, Aruba, Extreme, Linux, IP phones, access points, and many other platforms can exchange a common discovery format.

Direct-neighbor scope

LLDP describes the device and port at the other end of a link. It is not a routing protocol and does not discover remote hops.

How LLDP TLVs work

LLDP carries information in Type-Length-Value (TLV) fields. The type identifies the field, the length states how many bytes it uses, and the value contains the actual advertised information.

Chassis IDWhich device?
Port IDWhich interface?
TTLHow long is it valid?
SystemName and capabilities
ManagementReachable address
Mandatory identity and lifetime TLVs establish the neighbor entry; optional TLVs add descriptions, capabilities, management addresses, and organizational extensions.
  • Port Description: a human-readable interface description.
  • System Name: the hostname or configured system identity.
  • System Description: platform and software information.
  • System Capabilities: router, bridge, telephone, WLAN access point, station, and other advertised roles.
  • Management Address: an address a management system may use to reach the device.

LLDP topology example

Two Catalyst switches are connected through FastEthernet0/24. Once LLDP is enabled, each switch can identify the other side without relying on matching interface descriptions or an existing topology diagram.

SW1FastEthernet0/24
LLDP advertisements
IEEE 802.1ABBidirectional neighbor data
Fa0/24 ↔ Fa0/24
SW2FastEthernet0/24
Each switch independently advertises its own identity and port information and learns the neighbor at the opposite end.

Configure LLDP on Cisco IOS

The LLDP default varies across Cisco platforms and software releases. Verify the device rather than assuming it is enabled or disabled. When required, enable the global LLDP process:

SW1(config)# lldp run
SW2(config)# lldp run

Control transmission and reception per interface

SW1(config)# interface FastEthernet0/24
SW1(config-if)# lldp transmit
SW1(config-if)# lldp receive

Use no lldp transmit or no lldp receive when a design requires one direction to be suppressed. Use no lldp run to disable the protocol globally.

Platform note: command availability, defaults, timer ranges, and displayed fields vary. Check the command reference for the exact IOS, IOS XE, NX-OS, or non-Cisco platform in use.

Verify LLDP neighbors

SW1# show lldp neighbors
Device ID    Local Intf   Hold-time   Capability   Port ID
SW2          Fa0/24       120         B            Fa0/24

Total entries displayed: 1

The summary view provides the neighbor identity, local interface, remaining holdtime, capability, and remote port. Use the detailed command when you need more context:

SW1# show lldp neighbors detail
Chassis id: 0011.bb0b.361a
Port id: Fa0/24
Port Description: FastEthernet0/24
System Name: SW2.example.net
System Capabilities: B,R
Enabled Capabilities: B
Time remaining: 106 seconds

show lldp

Confirm global status, timers, and protocol operation.

show lldp interface

Check transmit and receive state on individual ports.

show lldp neighbors

List directly connected neighbors in a compact table.

show lldp neighbors detail

Inspect TLVs, descriptions, capabilities, and management data.

Advertise an interface description

One practical LLDP advantage is that the local interface description can appear as the neighbor's Port Description TLV.

SW1(config)# interface FastEthernet0/24
SW1(config-if)# description LINK_SW1_SW2

After the next advertisement, SW2 can display LINK_SW1_SW2 in its detailed neighbor output. This gives an engineer a quick way to compare the intended cable purpose with the observed neighbor.

What is LLDP-MED?

LLDP Media Endpoint Discovery (LLDP-MED) extends LLDP for devices such as IP phones and other media endpoints. Depending on device support and policy, LLDP-MED can advertise:

  • Network policy and voice VLAN information
  • Power over Ethernet requirements and allocation
  • Endpoint device type and capabilities
  • Location identification for emergency services
  • Hardware, firmware, and software inventory details
Operational value: LLDP-MED can help a supported phone learn the correct voice policy while allowing the switch to understand the endpoint's power and device capabilities.

LLDP security guidance

Like CDP, LLDP can reveal useful reconnaissance data: device names, descriptions, interface identifiers, software details, capabilities, management addresses, and network policies. Use it intentionally.

  1. Enable LLDP only where discovery or endpoint policy requires it.
  2. Disable transmission toward untrusted devices when advertisements provide no operational benefit.
  3. Restrict management-plane access independently; an advertised address is not an access-control mechanism.
  4. Monitor unexpected neighbor changes on important uplinks and endpoint ports.
  5. Do not treat LLDP data as authenticated proof of device identity.

CDP vs LLDP: which should you use?

DecisionChoose CDP whenChoose LLDP when
Vendor environmentThe network is Cisco-centric and Cisco-specific discovery features matter.The network contains devices from multiple vendors.
Standard requirementA proprietary Cisco protocol is acceptable.An IEEE-standard discovery method is required.
Media endpointsCisco endpoint integration is already designed around CDP.LLDP-MED provides the required voice, power, or location policy.
MigrationExisting automation and operations depend on CDP fields.A neutral common discovery layer reduces vendor dependency.

Some networks run both during migrations or to support different endpoint types. If you do, account for duplicate neighbor records and document which protocol is authoritative for automation.

Previous: Cisco Discovery Protocol

Link Layer Discovery Protocol (LLDP) Frequently Asked Questions

Is LLDP the same as CDP?

No. They solve a similar directly connected neighbor-discovery problem, but LLDP is an IEEE standard and CDP is Cisco proprietary.

Is LLDP enabled by default?

It depends on the vendor, model, and software release. Confirm the running state rather than relying on a general default.

Can LLDP assign a VLAN?

Base LLDP describes neighbors. LLDP-MED network-policy extensions can advertise voice VLAN and related policy to supported endpoints.

Does LLDP cross a router?

No. LLDP frames are link-local and are not forwarded across routed hops.

What happens when LLDP messages stop?

The neighbor entry remains until its advertised time-to-live expires, then it is removed unless a new advertisement refreshes it.