• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 674
  • Last Modified:

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

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
2 Solutions
Jimmy Larsson, CISSP, CEHNetwork and Security consultantCommented:
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
detox1978Author Commented:
detox1978Author Commented:
I've just checked an I have admin SSH access to them.
Protect Your Employees from Wi-Fi Threats

As Wi-Fi growth and popularity continues to climb, not everyone understands the risks that come with connecting to public Wi-Fi or even offering Wi-Fi to employees, visitors and guests. Download the resource kit to make sure your safe wherever business takes you!

detox1978Author Commented:
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?
detox1978Author Commented:
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
detox1978Author Commented:
any thoughts?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Tackle projects and never again get stuck behind a technical roadblock.
Join Now