06-20-2011 07:36 AM - edited 03-03-2019 06:18 AM
Hi all,
We have a few switches in our company and we wanted to know an easy and quick way to find out which servers are connected to that switch (even if possible on which interface).
For example:
Firewall -> Switch1 interface Gig 0/1
Mail or 10.10.10.10 -> Switch2 interface Gig 0/3
I'm using at this moment the following command:
show cdp neighbors
It gives me all cisco device connected to that switch.
Is there an other command that does the same? Displaying the DNS or IP of a server that is connected to that interface of the switch.
Kind Regards
06-22-2011 03:44 AM
Hi,
a) there are some free tools available to track the end devices.
SolarWinds User Device Tracker might be an example (not tested personally).
b) If you want to run a CLI command, you usually need to take an opposite way: find out the device IP or MAC address and track to which switch port it's connected.
So you can list the FW ARP cache in your case.
And then to use "trace mac ip ..." switch CLI command, e.g.
See
or
for details.
HTH,
Milan
06-23-2011 11:29 PM
Hi milan,
Thanks fo the advice.
Going to check what i can find with the "trace mac ip" command.
Als found a tool "cdp-tools" on linux servers wich you can install and when you type in " show cdp neighbors" on your cico device, it also shows you server. Now gonna look if i can find something simular for windows.
Could be handy in some cases to know what is connected to eachother.
Kind Regards,
Glenn
06-24-2011 12:32 AM
Hi,
I found this for Windows
http://sourceforge.net/projects/cdp4win/
But I've got a feeling it does not advertise itself by CDP, it just captures CDP packets sent by Cisco devices.
BR,
Milan
06-24-2011 12:51 AM
Milan,
Found also another tool, not completly free but tested just a minute ago.
This seems to send and receive CDP.
http://www.tallsoft.com/cdpmonitor.htm
It shows you the switch and interface ( on windows) your are connected with/on.
On the cisco device, my host IP/(even computer name) is in the cdp neighbors list.4
Will check your tool.
Guess to check your connected servers, it is the best way to install tools than following the cables for each server.
Thanks for the advice.
Kind Regards,
Glenn
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