LLDP (Link Layer Discovery Protocol)
Cheat sheet · https://pcornel.dk/topic.php?topic=597
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 / 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=597