Pcornel
Networking · Switching › Layer 2 Discovery

LLDP (Link Layer Discovery Protocol)

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

Back to the Topic

Answer

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.

Remember

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.

First checks

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

Commands

show lldp neighbors detail
Display LLDP neighbor information.
lldp run
Enable LLDP globally.
no lldp run
Disable LLDP globally.
lldp transmit
Allow the interface to send LLDP.
lldp receive
Allow the interface to receive LLDP.
show lldp
Display global LLDP settings.
show lldp neighbors
Display neighbors learned through LLDP.
show lldp interface
Display LLDP status per interface.

Verify in this order

protocol enabled on both ends → advertisements sent on the link → neighbour entry created → device name and remote port match the design

Where it usually breaks

disabled direction → lost advertisements → stale lifetime → optional TLV or inventory mismatch

LLDP TLV quick map

TLV / fieldMeaningOperational use
Chassis IDremote chassis identityidentify peer
Port IDremote port identitytrace cable/port mapping
TTLadvertisement lifetimeunderstand neighbor aging
System Nameadvertised device namevalidate expected peer
System Descriptionplatform/software descriptionplatform context
System Capabilitiesadvertised rolesidentify bridge/router/phone class
Management Addressoptional management identitycandidate address for management verification

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

Confirmation

Confirm action

Continue?