BuildTheNet

Opening your workspace

Your learning content and tools are loading.

Device Management

show cdp neighbors detail

Shows each CDP neighbor in full, including its management IP address and software version.

Written by a working field network engineer · CCNA, Security+, CySA+

Everything CDP knows about each neighbor, including its management IP address and software version. The IP address is what makes it useful: you can reach the next device without knowing its address in advance.

Example output

R1#show cdp neighbors detail
-------------------------
Device ID: R2
Entry address(es):
  IP address: 10.0.12.2
Platform: Cisco CISCO2911/K9,  Capabilities: Router Source-Route-Bridge Switch IGMP
Interface: GigabitEthernet0/1,  Port ID (outgoing port): GigabitEthernet0/1
Holdtime : 163 sec

Version :
Cisco IOS Software, C2900 Software, Version 15.7(3)M4

advertisement version: 2
Duplex: full
Management address(es):
  IP address: 10.0.12.2

Reference output: hand-written in standard Cisco IOS format for this example network, not captured from a device. One of the two neighbors shown.

Useful variants

What each column or field means

FieldMeaning
Entry address(es)Layer 3 addresses of the neighbor’s interface.
Interface / Port IDYour port, and the neighbor’s port.
VersionThe neighbor’s software version.
Native VLAN / DuplexAdvertised on switch links. CDP logs a mismatch of either.
Management addressThe address to manage the neighbor on.

When it doesn’t look right

Entry address is missing.

The neighbor’s interface has no IP address. That is normal for a Layer 2 switch port; check its management VLAN interface instead.

You are worried about exposing this information.

Disable CDP on edge ports facing users or other organisations with no cdp enable; keep it on infrastructure links.

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