Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find what switch a server is conected to

Status
Not open for further replies.

fzx5v0

IS-IT--Management
Jan 13, 2003
79
GB
Hi

is there anyway to find out what switch a windows server is conected to with out sending someone to phisically to look

tracert only shoows router I need to find the switches

Thanks

Easyinkz Printer cartridges
 
How I usually end up tracking devices down is if I have the IP address, I go to the routers and do a "show arp | include xxx.xxx.xxx" where xxx.xxx.xxx is the ip address. This then gives the MAC address of the device.

Then the hard part is connecting to each switch and doing a "show mac-address-table | inc xxxx.xxxx.xxxx.xxxx" where the xxxx.xxxx.xxxx.xxxx is the mac address. Just repeat on each switch until you find the one where it is not connected to an uplink/trunk port.

 
you might be surprised...if all your switches connect back to a single point, then you will narrow it down pretty quickly. I use it all the time and my primary campus has about 100 switches. I can usually find a device in about 5-10 minutes or less
 
Also, though this is only a secondary methed, this command
router#sh cdp nei det
will work on Cisco devices with cdp enabled (enabled by default). Usually, however, it is wise to disable cdp on edge routers.

Burt
 
cdp will not work finding a windows server.

fzx if you think going on site and tracing every cable on every switch will be faster than what lerdalt suggested more power to you.

i guarantee I can do the same in a third of the time or less and I'll never have to leave my office.
 
I know CDP will not find the server---neither will sh arp or sh mac-add-tab..."tracert only shoows router I need to find the switches"---this is what I was talking about. But thanks for the info...

Burt
 
Usually the last 4 of the mac address is unique on a network.
That way you only have to type.

"sh mac- | inc cccc" where the mac address is aaaa.bbbb.cccc

If the device is a windows computer, you the verify the mac address with "nbtstat -a 111.222.111.222" (where 111.222.111.222 is the ip address).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top