We help IT Professionals succeed at work.

How can i work out the route a server takes to the default gateway?

Medium Priority
Last Modified: 2012-04-09
Hi All,

I've recently started a new company and want to find out what switches our servers (windows 2003/2008) are connected too.

Almost all of them are PING able, but PINGPATH and TRACERT dont return anything.

I'd rather not do this manually as it'll take more time than it's worth.

Is there another method?

Many thanks
Watch Question

Network and Security consultant
There is no way from the end nodes (clients/servers) to figure out which switch-path the traffic takes, like traceroute for routed traffic. In order to trace the packets you need to get into each intermediate switch and look in its CAM-table to see on which port each MAC-address (client/server) shows. The commands for this is different on different switches. For example, in modern Cisco switches the command "show mac address-table dynamic" shows you a listing of all known MAC-addresses together with on which switch port that address is associated. By doing this hop by hop you will find the path.

Best regards


I've just checked an I have admin SSH access to them.


I also have TELNET and HTTP access
To add a little to what was mentioned above. You can use the arp commands in the router/L3 switch at the core of the network to get the mac address of each server. It may be possible to see what port those arps are learned on depending on your confiuration and therefore narrow down which edge switches the servers are attached to or at least what path to take from the core layer 3 switch or router to get to them.

Can't you just remote logon to the servers and run it from there?


I've not done that much networking, so will need a little more help on getting the port and MAC info.

I would have thought the switches would log the this info somewhere


any thoughts?

Explore More ContentExplore courses, solutions, and other research materials related to this topic.