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.2Reference 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
show cdp entry R2show cdp entry *
What each column or field means
| Field | Meaning |
|---|---|
Entry address(es) | Layer 3 addresses of the neighbor’s interface. |
Interface / Port ID | Your port, and the neighbor’s port. |
Version | The neighbor’s software version. |
Native VLAN / Duplex | Advertised on switch links. CDP logs a mismatch of either. |
Management address | The 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
- 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)
Topic
Device Management — Read the configuration and software version, save changes, discover neighbors with CDP and LLDP, and check logging and time.