show lldp neighbors
Lists directly connected devices discovered with the vendor-neutral LLDP protocol.
Written by a working field network engineer · CCNA, Security+, CySA+
LLDP (IEEE 802.1AB) is the vendor-neutral equivalent of CDP. On Cisco IOS it is off by default; once enabled with lldp run it shows neighbors from any vendor that supports it.
Example output
SW1#show lldp neighbors
Capability codes:
(R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device
(W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
Device ID Local Intf Hold-time Capability Port ID
R1 Gi0/1 120 R Gi0/0
SW2 Fa0/7 120 B Fa0/7
SW2 Fa0/8 120 B Fa0/8
Total entries displayed: 3Reference output: hand-written in standard Cisco IOS format for this example network, not captured from a device.
Useful variants
show lldp neighbors detailshow lldp
What each column or field means
| Field | Meaning |
|---|---|
Device ID | The neighbor’s system name. |
Local Intf | Your port. |
Hold-time | Seconds the entry stays without a refresh (default 120, sent every 30). |
Capability | R router, B bridge (switch), T telephone, W access point. |
Port ID | The neighbor’s port. |
When it doesn’t look right
“% LLDP is not enabled”.
Enable it globally with lldp run. Individual ports can be controlled with lldp transmit and lldp receive.
A neighbor appears in CDP but not LLDP.
LLDP is off on one of the two devices, or transmit/receive is disabled on the port.
Related commands
Try it yourself
- CDP & LLDP Neighbor Discovery (Pro)
- Free lab on this topic: Switch Management VLAN
- Or build the example network in the free Sandbox
Learn it in the CCNA path
- Device Discovery (CDP & LLDP) (2. Network Access)
- Learn what is on the other end of a link (Prerequisite review: CCNA topics from the CCNP courses)
Topic
Device Management — Read the configuration and software version, save changes, discover neighbors with CDP and LLDP, and check logging and time.