Forcing a packet through an interface (OT?)
John Oxley
john at yoafrica.com
Wed Jul 13 08:03:49 GMT 2005
On Tue, Jul 12, 2005 at 09:45:21AM -0600, Chad Leigh -- Shire.Net LLC wrote:
>
> On Jul 12, 2005, at 5:38 AM, 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) !!
>
> Nom what you want to do is
>
> ping isp1.router.net
no, ping -r isp1.router.net
-r Bypass the normal routing tables and send directly to a
host on an attached network. If the host is not on a
directly-attached network, an error is returned. This
option can be used to ping a local host through an interface
that has no route through it (e.g., after the interface was
dropped by routed(8)).
or maybe have a look at the -S flag
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2198 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050713/45bdf43d/smime.bin
More information about the freebsd-questions
mailing list