CISCO DISCOVERY PROTOCOL - CDP

CISCO DISCOVERY PROTOCOL - CDP


CDP is enabled by default on all Cisco devices. It is used for troubleshooting connectivity between Cisco devices. To check the output of Cisco discovery protocol (CDP) use the following commands.

The following command will show CDP hello and the hold-down interval.

Syntax:

Router#show cdp


KOLKATA#sh cdp
     Global CDP information:
     Sending CDP packets every 60 seconds
     Sending a holdtime value of 180 seconds
     Sending CDPv2 advertisements is enabled


The following command will show the brief information of the directly connected Cisco devices Like hostname, interface to which it is connected, the model of the device etc.




Syntax:

Router#show cdp neighbor


Output:


KOLKATA#sh cdp neighbors 
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
Switch                             Fas 0/0               149                  S                      2950              Fas 0/1
MUMBAI                          Ser 0/0/0           149                  R                      C1841           Ser 0/0/1
DELHI                              Ser 0/0/1           149                  R                      C1841           Ser 0/0/0



The following command will show detail information to the directly connected cisco devices Like- IP address lOS version, platform of the remote device etc.


Syntax:

Router#show cdp neighbor detail

Output:

KOLKATA#sh cdp neighbors detail


Device ID: Switch
Entry address(es): 
Platform: cisco 2950, Capabilities: Switch
Interface: FastEthernet0/0, Port ID (outgoing port): FastEthernet0/1
Holdtime: 141

Version :
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA4, RELEASE SOFTWARE(fc1)
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Wed 18-May-05 22:31 by jharirba

advertisement version: 2
Duplex: full
---------------------------

Device ID: MUMBAI
Entry address(es): 
  IP address : 172.17.0.2
Platform: cisco C1841, Capabilities: Router
Interface: Serial0/0/0, Port ID (outgoing port): Serial0/0/1
Holdtime: 141

Version :
Cisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Wed 18-Jul-07 04:52 by pt_team

advertisement version: 2
Duplex: full
---------------------------

Device ID: DELHI
Entry address(es): 
  IP address : 172.16.0.1
Platform: cisco C1841, Capabilities: Router
Interface: Serial0/0/1, Port ID (outgoing port): Serial0/0/0
Holdtime: 141

Version :
Cisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Wed 18-Jul-07 04:52 by pt_team

advertisement version: 2
Duplex: full

No comments:

Post a Comment