10-11-2021 03:41 AM
Hi All
With CDP, do switches only show directly attached devices ? i.e the cdp neighbour info does not get passed to the next switch ?
Solved! Go to Solution.
10-11-2021 12:16 PM - edited 10-11-2021 12:18 PM
Hello @carl.townshend ,
just to add to other comments:
if you put a non Cisco switch that does not support or run CDP on the path you can see multiple CDP neighbors on a single Cisco switch port ( if all of them connect to this device)
CDP is actually a proprietary protocol that uses a multicast destination MAC address as a result of this there is the special corner case that I have described above.
Edit:
I hadn't read @Joseph W. Doherty post but we are saying almost the same thing
Hope to help
Giuseppe
10-11-2021 03:52 AM
Hello,
correct. Indeed CDP only collects information from directly connected neighbors.
I think there is a CDPv2 now that can discover stuff like native Vlan mismatches and port speed/duplex mismatches as well. However, still only on directly connected devices.
10-11-2021 04:22 AM
Hi,
CDP works with directedly connected and CDP enabled ports. immediate devices will share details such as, Device model, capabilities, native VLAN, IP address, etc in V2. these details will not pass to next device and using only for neighbor details discovering. you can easily use CDP to identify/discover network connectivity without physical visit to the devices if CDP enabled.
rate this and mark as answer if this resolved your concern
10-11-2021 06:47 AM
adding to other comments, CDP never show any information, which do not have any visibility of directly connected device.
what is the use case ?
10-11-2021 07:56 AM
At noted by others, CDP will not transit through Cisco CDP capable switches, however, it might transit though "dumb" and/or non-Cisco switches. It can also, if so configured, transverse some Cisco tunnels.
The forgoing would be examples of where devices are not physically directly connected.
10-11-2021 12:16 PM - edited 10-11-2021 12:18 PM
Hello @carl.townshend ,
just to add to other comments:
if you put a non Cisco switch that does not support or run CDP on the path you can see multiple CDP neighbors on a single Cisco switch port ( if all of them connect to this device)
CDP is actually a proprietary protocol that uses a multicast destination MAC address as a result of this there is the special corner case that I have described above.
Edit:
I hadn't read @Joseph W. Doherty post but we are saying almost the same thing
Hope to help
Giuseppe
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide