Show & diagnostics

show cdp neighbors [detail]

List directly-connected neighbours discovered via CDP. 'detail' adds their IP and platform.

Works on: Router, SwitchMode: enable

Sample output

Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone

Device ID        Local Intrfce   Holdtme   Capability   Platform   Port ID
SW25             Gi0/0           180       S            NF-SWITCH   Fa0/1
SW26             Gi0/1           180       S            NF-SWITCH   Fa0/1

Captured from the NetForge-AI simulator running a real topology.

Watch out

CDP is on by default. 'no cdp run' globally disables it.

Run this command live

Don't just read it — type show cdp neighbors [detail] in a real network simulator in your browser and watch it take effect. No install, no account needed to start.

Open the lab

Frequently asked

What does the "show cdp neighbors [detail]" command do?

List directly-connected neighbours discovered via CDP. 'detail' adds their IP and platform.

What's the common gotcha with "show cdp neighbors [detail]"?

CDP is on by default. 'no cdp run' globally disables it.

More Show & diagnostics commands

← Back to the full command reference

show cdp neighbors [detail] — network CLI command reference · NetForge-AI