Forcing a packet through an interface (OT?)
John Von Essen
john at essenz.com
Tue Jul 12 21:37:55 GMT 2005
Yep, that'll do it. Just choose two time servers that you would never need
to use in real life. From google, you should be able to find a list of
nearby public time servers.
-john
On Tue, 12 Jul 2005, Mario Lobo wrote:
> That sounds close to what I need !!
>
> > > 1) rl0 -----------> router ----------> antenna ------> ISPx ------> internet
>
> So would it be something like:
> route add -host ${ip.of.public.host} netmask 255.255.255.255 gateway ${ip.of.rl0}
>
> is that correct?
>
> In this case that host will be "sacrificed", if rl0 is down.
>
> Do you have any suggestions on time or whois servers? Don't worry
> because the pings I send are standard 56 bytes long.
>
> Thanks John !
>
> P.S. - I'm replying to your post from my home e-mail. I made the post from my work e-mail.
> --
> //| //||
> // | // ||
> -//--//--|| ARIO LOBO
> // // ||
> ---------------------------------
> mlobo at ocp.nlink.com.br
> http://mariolobo.70d.com
> http://www.mallavoodoo.com.br
>
>
> > Mario,
> >
> > I think the only way to do what you want is to find two hosts on the
> > internet that don't conflict with what you do on a day to day basis. Then
> > add custom routes for those two specific hosts, and with those routes, you
> > force traffic through each NIC.
> >
> > A perfect example of two public servers would be time or whois servers.
> > Just be nice and dont ping too much (i.e., only send two "small" pings
> > every 2 minutes or something).
> >
> > -john
> >
> > On Tue, 12 Jul 2005, Mario Lobo wrote:
> >
> > > Yeah Stefan. They do take the default route. That is what I am already doing.
> > >
> > > I even wrote a little prog using a variation of ping to do just that.
> > >
> > > The problem lies with the fact that, there is a router between my rl0 and the internet.
> > >
>
> > >
> > > So the fact that i can ping the hop next to rl0 doesn´t mean the link is up :(.
> > >
> > > That is why I NEED to ping something on the internet.
> > >
> > > Thanks,
> > > --
> > > //| //||
> > > // | // ||
> > > -//--//---|| ARIO LOBO
> > > // // ||
> > > ---------------------------------
> > > mario.lobo at ipad.com.br
> > > http://www.ipad.com.br
> > >
> > >
> > > On 12 Jul 2005 at 15:48, stsp at stsp.in-berlin.de wrote:
> > >
> > > > 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
> > > > _______________________________________________
> > > > freebsd-hackers at freebsd.org mailing list
> > > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> > > > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
> > >
> > >
> > > _______________________________________________
> > > freebsd-hackers at freebsd.org mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> > > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
> > >
> > >
> > _______________________________________________
> > freebsd-hackers at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
> >
>
>
>
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>
>
More information about the freebsd-questions
mailing list