To display information about neighbors, use the show cdp neighbors privileged EXEC command.
show cdp neighbors [type number] [detail]
Syntax Description
type (Optional) Type of the interface connected to the
neighbors about which you want information. number (Optional) Number of the interface connected to
the neighbors about which you want information. detail (Optional) Displays detailed information about
a neighbor (or neighbors) including network address, enabled protocols,
hold time, and software version.
Command Modes
Privileged EXEC
Command History
10.3 This command was introduced.
Release
Modification
Examples
The following is sample output from the show cdp neighbors command. Device ID, interface type and number, holdtime settings, capabilities, platform, and port ID information about neighbors is displayed.
Router# show cdp neighbors Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater Device ID Local Intrfce Holdtme Capability Platform Port ID device1.cisco.com Eth 0/1 122 T S WS-C2900 2/11 device2.cisco.com Eth 0/1 179 R 4500 Eth 0 device3.cisco.com Eth 0/1 155 R 2500 Eth 0 device4.cisco.com Eth 0/1 155 R 2509 Eth 0
The following is sample output for one neighbor from the show cdp neighbors detail command. Additional detail is shown about neighbors, including network address, enabled protocols, and software version:
Router# show cdp neighbors detail ------------------------- Device ID: device2.cisco.com Entry address(es): IP address: 171.68.162.134 Platform: cisco 4500, Capabilities: Router Interface: Ethernet0/1, Port ID (outgoing port): Ethernet0 Holdtime : 156 sec Version : Cisco Internetwork Operating System Software IOS (tm) 4500 Software (C4500-J-M), Version 11.1(10.4), MAINTENANCE INTERIM SOFTWARE Copyright (c) 1986-1997 by Cisco Systems, Inc. Compiled Mon 07-Apr-97 19:51 by dschwart
Related Commands
show cdp "Displays global CDP information, including timer
and hold-time information." show cdp entry Displays information about a neighbor device listed
in the CDP table. show cdp interface Displays information about the interfaces on which
CDP is enabled. show cdp traffic Displays traffic information from the CDP table.
Command
Description