09-27-2012 03:59 PM - edited 03-03-2019 06:46 AM
Hello All,
I'm a beginning Network Specialist and just thought I would throw this question out and see if I can get some answers. Well I want to know how I can use CDP to discover our network topology so I can create layouts and diagrams in Visio or if you know of any free network discovery programs out there that can help? Well any feedback will be appreciated so thanks in advance and I look forward to hearing something!
Solved! Go to Solution.
09-30-2012 01:38 PM
When you run "sh cdp neighbors" it shows you all direclty connected devices. If you then do "sh cdp neighbor
I think CDP can be useful for this but your are relying on CDP being run on all devices. Sometimes it has been disabled for security reasons so you always need to be aware that there may be devices that are not showing.
SNMP as mentioned is another alternative but again this assumes SNMP has been setup on esch device.
So just be aware you may not always get the full picture but a combination of -
1) CDP
2) SNMP
3) running traceroutes will show router hops but not L2 switches.
you should get most of the information. Be aware also that internal firewalls tend to mess these sort of things as well.
Jon
09-29-2012 07:33 AM
Cdp only sees devices directly connected and therefore cannot see something 2 "hops" away. There are plenty of network diagram tools built around snmp.
Sent from Cisco Technical Support iPad App
09-29-2012 11:46 AM
CDP is THE protocol if you want to start documenting seriously a network. It's 13 years I am in networking but if I need to be sure about a topology CDP is the only protocol I would still use. One of the many benefits is that you can match the CDP entries against the arp table ones. It is true that it will not see two hops away, but a real diagram describing the physical topology does not need to know what is two hops far away!!!!
Hope this helps
Alessio
Sent from Cisco Technical Support iPad App
09-29-2012 07:28 PM
Thanks Alessio! Appreciate the input! I work nearly in a complete Cisco environment. So when I run sh cdp neighbors or other commands what am I looking for to identify the topology? How can I use what I find to get to directly connected routers or switches?
09-30-2012 01:38 PM
When you run "sh cdp neighbors" it shows you all direclty connected devices. If you then do "sh cdp neighbor
I think CDP can be useful for this but your are relying on CDP being run on all devices. Sometimes it has been disabled for security reasons so you always need to be aware that there may be devices that are not showing.
SNMP as mentioned is another alternative but again this assumes SNMP has been setup on esch device.
So just be aware you may not always get the full picture but a combination of -
1) CDP
2) SNMP
3) running traceroutes will show router hops but not L2 switches.
you should get most of the information. Be aware also that internal firewalls tend to mess these sort of things as well.
Jon
10-01-2012 10:28 PM
hi,
the most useful to me when creating visio network diagrams are the show cdp neighbors and show ip interface brief commands.
i used solarwinds LAN surveyor tool a couple of times, but i still prefer doing it manually. it makes me more familiar with the network (espcially for LAN).
10-09-2012 10:17 PM
Just to add 2 cents on John's explanation.
CDP will give you later 2 topology, this restricts only to Cisco devices connected to other Cisco devices (CDP stands for
Cisco Discovery Protocol), so it searches only Cisco gears.
I am not sure about your set up you are trying to put it on Visio diagrams. but if other devices are present on your environment, like lets take an example of Juniper device ( connected to Cisco device) then you need to enable LLDP (Link layer Discovery Protocol) on cisco device to get to know about adjacent Juniper gear. you can run "show lldp neighbor" command on Cisco once you enable lldp on Cisco. (For Juniper, lldp is already enabled).
for layer 3 topology, you need to see by various commands, like if you are running ospf in Switching environment then
show ip ospf neighbor
show ip ospf interface
if you are running BGP then show ip bgp summary or "show run | beg er bgp"
if you are running EIGRP, (I think you are not) but then - show ip eigrp neighbors.
hope this helps.
JD...
11-26-2018 08:06 AM
Hi
Although this is an old thread but may be someone else find it useful.
I have used following commands to draw the network diagram on paper
- show ip route
- show ip interface brief
- sh cdp entry * protocol (very helpful command to only list the neighbouring switch name and its ip address)
Regards
Zaaf
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