Command:

 

show cdp neighbors

 

Mode:

Router#


Syntax:

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

To display information about neighbors, use the show cdp neighbors privileged EXEC command.


Example:

The following is a sample of 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 a sample of 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

 

Misconceptions:
None

Related Commands:
cdp run
show cdp

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)