I have a machine that is connected to two different ISP's. One of them is currently my default GW, the other one is unused.
I need to constantly ping a known internet host (e.g. google) through each of these ISPs. I was pretty confident that a script that loops through 'ping -I interface_1 188.8.131.52' and 'ping -I interface_2 184.108.40.206' will do the job.
But it turned out that my ping always transmits packets from the egress interface (that has the default route configure). This is useless for me - I cannot change the default gateway everytime the loop continues. My internet connection would suffer greatly from this.
How can I ping an internet host from two different interfaces?
Thank you in advance,
PS. I am using OpenBSD 4.9, if this makes any difference.
|Thread||Thread Starter||Forum||Replies||Last Post|
|ping: sendto: No route to host||joostvgh||OpenBSD General||2||29th April 2010 12:34 PM|
|Can't Response Ping Request||widhi||OpenBSD General||5||24th March 2010 10:40 PM|
|OpenBSD 4.6 Install Complete, cannot ping||Jeff||OpenBSD Installation and Upgrading||1||22nd October 2009 04:00 PM|
|FreeBSD ping issue||wooki||FreeBSD General||1||2nd October 2009 04:10 PM|
|Cannot get new installed card to ping other machine||Johnny2Bad||FreeBSD Installation and Upgrading||2||10th June 2008 08:54 PM|