cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6247
Views
0
Helpful
4
Replies

Which server is connected to a switch interface

glenn b
Level 1
Level 1

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

4 Replies 4

milan.kulik
Level 10
Level 10

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

http://www.cisco.com/en/US/customer/docs/switches/lan/catalyst3750/software/release/12.2_25_sec/command/reference/cli3.html#wp1917847

or

http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_25_sec/command/reference/cli3.pdf

for details.

HTH,

Milan

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

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

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: