Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jul 2005 15:48:25 +0200
From:      stsp@stsp.in-berlin.de
To:        freebsd-hackers@freebsd.org
Subject:   Re: Forcing a packet through an interface (OT?)
Message-ID:  <20050712134825.GA949@stud.seeling33.de>
In-Reply-To: <42D38178.8740.3F340A6@localhost>
References:  <20050711232642.GK39292@obiwan.tataz.chchile.org> <42D38178.8740.3F340A6@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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