User Tools

Site Tools


cisco_discovery_protocol_cdp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
cisco_discovery_protocol_cdp [2024/01/19 14:41] – [Some CDP Facts] walkeradmincisco_discovery_protocol_cdp [2024/01/19 14:54] – [CDP Neighbors] walkeradmin
Line 26: Line 26:
  
 When a devices receives a CDP message from a neighbouring device, it adds an entry for that device in its CDP Neighbour table. When a devices receives a CDP message from a neighbouring device, it adds an entry for that device in its CDP Neighbour table.
- 
-When a devices receives a CDP message from a neighboring device, it adds an entry for that device in its CDP Neighbour table. 
  
 By default, the CDP Holdtime is 180 seconds, so if a neighbour isn't heard from after 180s, it is removed from the CDP Neighbour table. By default, the CDP Holdtime is 180 seconds, so if a neighbour isn't heard from after 180s, it is removed from the CDP Neighbour table.
Line 97: Line 95:
   Rack4Control     Gig 0/2           152              S I   WS-C2960- Fas 0/2   Rack4Control     Gig 0/2           152              S I   WS-C2960- Fas 0/2
 \\  \\ 
 +Look at the diagram below, this is what we have physically:
 +\\ 
 +\\ 
 +{{ ::cdp_001.png?900 |}}
 +\\ 
 +Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
 +\\ 
 +Switch           Gig 0/1           135              S I   WS-C2960- Fas 0/1
 +\\ 
 +Rack4Control     Gig 0/2           152              S I   WS-C2960- Fas 0/2
 +\\ 
 +\\ 
 +Looking at the table above, we are looking at the perspective of Switch A. Switch A can see two switches (2 neighbours) that are connected to it.
 +\\ 
 +\\ 
 +Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
 +Switch           Gig 0/1           135              S I   WS-C2960- Fas 0/1
 +\\ 
 +\\ 
 +Device ID is the name of the Switch.
 +\\ 
 +\\ 
 +Local Intrfce is the interface of the switch we are running this command on (So the Switch called Switch is connected to our switch via local interface Gi01)
 +\\ 
 +\\ 
 +Holdtme is the 180 second time, if this drips down to zero, that device will be removed from the CDP Neighbour table.
 +\\ 
 +\\ 
 +Capability you can reference to this information at the top of the output:
 +<file>
 +Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
 +                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,
 +                  D - Remote, C - CVTA, M - Two-port Mac Relay
 +</file>
 +So Capability S and I means the Switch can be a Switch and use IGMP.
 +\\ 
 +\\ 
 +Platform - This is the detected Switch Model (WS-C2960-)
 +\\ 
 +\\ 
 +Port ID is the interface of the Neighbour switch that is connected to this switch.
 +\\ 
 +\\ 
 +==== CDP Neighbors Detail ====
 +This command gives a more expansive set of information than "sh cdp neighbor"
 +<file>
 +sh cdp neighbor detail
  
 +-------------------------
 +Device ID: Switch
 +Entry address(es):
 +Platform: cisco WS-C2960-48TC-L,  Capabilities: Switch IGMP
 +Interface: GigabitEthernet0/1,  Port ID (outgoing port): FastEthernet0/1
 +Holdtime : 159 sec
 +
 +Version :
 +Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(55)SE7, RELEASE SOFTWARE (fc1)
 +Technical Support: http://www.cisco.com/techsupport
 +Copyright (c) 1986-2013 by Cisco Systems, Inc.
 +Compiled Mon 28-Jan-13 10:22 by prod_rel_team
 +
 +advertisement version: 2
 +Protocol Hello:  OUI=0x00000C, Protocol ID=0x0112; payload len=27, value=00000000FFFFFFFF010221FF0000000000001CDEA7556980FF0000
 +VTP Management Domain: ''
 +Native VLAN: 10
 +Duplex: full
 +Management address(es):
 +
 +-------------------------
 +Device ID: Rack4Control
 +Entry address(es):
 +  IP address: 192.168.200.128
 +Platform: cisco WS-C2960-48TC-L,  Capabilities: Switch IGMP
 +Interface: GigabitEthernet0/2,  Port ID (outgoing port): FastEthernet0/2
 +Holdtime : 175 sec
 +
 +Version :
 +Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(55)SE7, RELEASE SOFTWARE (fc1)
 +Technical Support: http://www.cisco.com/techsupport
 +Copyright (c) 1986-2013 by Cisco Systems, Inc.
 +Compiled Mon 28-Jan-13 10:22 by prod_rel_team
 +
 +advertisement version: 2
 +Protocol Hello:  OUI=0x00000C, Protocol ID=0x0112; payload len=27, value=00000000FFFFFFFF010221FF0000000000001CDEA7556B80FF0000
 +VTP Management Domain: ''
 +Native VLAN: 1 (Mismatch)
 +Duplex: full
 +Management address(es):
 +  IP address: 192.168.200.128
 +</file>
 +\\ 
 +It is easy to see that there is much more detail about our neighbors here.
 +\\ 
 +\\ 
  
cisco_discovery_protocol_cdp.txt · Last modified: 2024/01/19 14:56 by walkeradmin