[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5551
  • Last Modified:

Ping through various gateways

I have a network with a number of gateways to the Internet.
I want to easily check to see that the connectivity to the internet is available through these gateways.
Could an expert tell me whether there is a command that routes a ping request or a tracert through the various gateways, without having to change the gateway of my machine
0
jsulliva1957
Asked:
jsulliva1957
  • 3
  • 3
  • 2
  • +1
1 Solution
 
trinak96Commented:
if your able to reach each gateway as a next hop router (ie: if their on the same subnet) then you should be able to.

Ping 3 web addresses, get their public ip's then do route add from does prompt, one address per gateway.
Otherwise, i dont think so - unless anybody else has any other ideas?


0
 
Fatal_ExceptionCommented:
Unfortunately, your default gateway will get all the Ping Traffic, but if you have backup gateways in the works, you could change the DG on your system and ping through those Gateways..  you could setup a number of Gateway Configs using Netsh or one of a variety of utilities available..  

For Netsh:

http://www8.pair.com/dmurdoch/netsh.html

Otherwise, you are going to have to test the Gateways (Routers) from their CLI's or onboard diagnostics...
0
 
myin68Commented:
Use this command from the command prompt: pathping yahoo.com -i 192.168.1.254 (where yahoo.com can be replaced by other domain/ip address as your destination, then use the "-i" switch, then enter the source ip address/gateway you'd like to test).
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
myin68Commented:
Addendum: to skip the "Computing Statistics" process and move onto testing the next gateway you can interrupt the command by entering key combination "[CTRL]+C".
0
 
Fatal_ExceptionCommented:
You know, I use Pathping all the time, and completely forgot that it had some usefull switches as mentioned...  never tried this one, but it might be a good solution.    let us know!
0
 
jsulliva1957Author Commented:
Pathping just looks like the command that I am seeking.

Thanks



Jim
0
 
jsulliva1957Author Commented:
Maybe I was a bit hasty this being the solution. I receive the same trace from each command. I would expect that if I pathping through router 192.168.3.108 that the first hop would be to the gateway of ISP 1, whereas if I pathping 192.168.3.109 the first hop would be to the gateway of ISP2. They are the same which seems to indicate that although I specified a different -i (source) the path taken still uses my default router:

Pathping to Default Router:
>pathping -n www.google.com -h 2 -i 192.168.3.108

Tracing route to www.l.google.com [72.14.253.104]
over a maximum of 2 hops:
  1  210.15.192.85
  2  172.30.28.2

Pathping to Backup Router:
>pathping -n www.google.com -h 2 -i 192.168.3.109

Tracing route to www.l.google.com [72.14.253.104]
over a maximum of 2 hops:
  1  210.15.192.85
  2  172.30.28.2
 


I would have expected the first hop on the second command to be the ISP's gateway 165.228.65.1.


Any Ideas??

0
 
Fatal_ExceptionCommented:
Never tried Pathping with that switch, and cannot test here at home..  you might have to fall back on my suggestion and change the DGs with netsh...
0
 
jsulliva1957Author Commented:
Thanks Fatal :)

I will look at netsh. I am trying to setup an autmated process that a program "uptime", can use, and changing the gateway of the server every 10 minutes isn't really what I wanted to do. The pathping offered me a neat solution if only it worked.

What do I do here. I don't want to upset anyone but really the points should at the very least be split between the two of you. I am not sure of the protocol.

Could you both (I assume myin68 will get this update), give me your opinion

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now