Forcing a packet through an interface (OT?)

stsp at stsp.in-berlin.de stsp at stsp.in-berlin.de
Tue Jul 12 13:54:58 GMT 2005


On Tue, Jul 12, 2005 at 08:38:16AM -0300, Mario Lobo wrote:
> First, thanks to all for the suggestions.
> 
> Now, using the same scenario,
> 
> > > 1) rl0 (real.ip.no.1) ---> ISP x
> > >
> > > 2) rl1 (real.ip.no.2) ---> ISP y
> 
> Suppose 1) is down and I´m using 2). If I "ping www.google.com",
> it will go out through 2). What I really need to do is to issue
> the same "ping www.google.com" but make go out through 1) !!

In case you got a static IP on rl0 from ISP x (and rl0 is up),

	ping -I <IP of rl0> www.google.com

might help.

Just a guess though. Packets might still take the default route, even with -I.

Good luck,
--
stefan
http://stsp.in-berlin.de                                 PGP Key: 0xF59D25F0


More information about the freebsd-hackers mailing list