Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 10th November 2011
zealer zealer is offline
Port Guard
Join Date: Sep 2011
Posts: 10
Default ping question

Hello everyone

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' and 'ping -I interface_2' 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.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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

All times are GMT. The time now is 03:15 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick