Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jul 2005 16:53:25 -0300
From:      "Mario Lobo" <mario.lobo@ipad.com.br>
To:        freebsd-hackers@freebsd.org
Cc:        freebsd-questions@freebsd.org
Subject:   Forcing a packet through an interface (OT?)
Message-ID:  <42D2A405.10443.923658@localhost>

next in thread | raw e-mail | index | archive | help
Forgive me if this is off-topic.

How could I force a packet to go out through an interface, 
despite the default route?

Suppose I have two interfaces connected to the internet:

1) rl0 (real.ip.no.1) ---> ISP x

2) rl1 (real.ip.no.2) ---> ISP y

ISP y is just a backup link. ISP x is the working link. 
Don=B4t want to load-balance them.  Use 2) ONLY if 1) is out.

Suppose 1) is down. I switch to 2). But I have to keep testing 1)
to see when it comes back up. How could I force a packet (ping maybe?) 
to www.whatever.com through 1), despite the default route being 2) ?

I am aready binding the ping packet to the IP I want but that=B4s not enou=
gh.

any suggestions?

thanks,
-- 
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //    ||
---------------------------------
mario.lobo@ipad.com.br
http://www.ipad.com.br




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42D2A405.10443.923658>