View Full Version : using Strict route with ping


Perdition
09-28-2006, 01:39 PM
Hi everyone, I'm interested in making a program, be it a batch/C/VB or
what not, which receives a list of IPs and a destination and sees if it
is possible to send a ping through that route.
I haven't had success using strict route with the windows/DOS ping
command, eg:

ping -k 10.0.0.254 ... www.yahoo.com
where the IP's i've supplied are actually the resulting IPs of "tracert
www.yahoo.com"

could someone explain how the -k should be used or how a program like
this can be made without having to learn a new programming language
etc.?

Thanks alot in advance :)
Michael

Pegasus \(MVP\)
09-28-2006, 02:30 PM
"Perdition" <nhnmp@walla.co.il> wrote in message
news:1159447142.892271.315440@m73g2000cwd.googlegroups.com...
> Hi everyone, I'm interested in making a program, be it a batch/C/VB or
> what not, which receives a list of IPs and a destination and sees if it
> is possible to send a ping through that route.
> I haven't had success using strict route with the windows/DOS ping
> command, eg:
>
> ping -k 10.0.0.254 ... www.yahoo.com
> where the IP's i've supplied are actually the resulting IPs of "tracert
> www.yahoo.com"
>
> could someone explain how the -k should be used or how a program like
> this can be made without having to learn a new programming language
> etc.?
>
> Thanks alot in advance :)
> Michael
>

This might help:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ping.mspx?mfr=true

Perdition
09-29-2006, 03:39 PM
I'm afraid that strict/loose route simply doesn't work as they've
explained it. I try using a route as dictated by ping -r (Record route)
and also tracert, to an interface that is no more than 3 hops away. the
ping times out each time even though it reaches the interface when i
ping there directly