BuildTheNet

Opening your workspace

Your learning content and tools are loading.

Device Management

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: 3

Reference output: hand-written in standard Cisco IOS format for this example network, not captured from a device.

Useful variants

What each column or field means

FieldMeaning
Device IDThe neighbor’s system name.
Local IntfYour port.
Hold-timeSeconds the entry stays without a refresh (default 120, sent every 30).
CapabilityR router, B bridge (switch), T telephone, W access point.
Port IDThe 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

Learn it in the CCNA path

Topic

Device Management — Read the configuration and software version, save changes, discover neighbors with CDP and LLDP, and check logging and time.

All 57 commands