Date: Wed, 6 Apr 2011 20:23:58 +0200 From: "K. Macy" <kmacy@freebsd.org> To: "J. Hellenthal" <jhell@dataix.net> Cc: Baginski Darren <kickbsd@yandex.ru>, Nikolay Denev <ndenev@gmail.com>, Michael Proto <mike@jellydonut.org>, freebsd-net@freebsd.org Subject: Re: Multiple gateways support Message-ID: <BANLkTi=579nrx%2BDahqaRgFpV2HJBpvQZeA@mail.gmail.com> In-Reply-To: <20110406181010.GB50909@DataIX.net> References: <1128701301678831@web100.yandex.ru> <BANLkTi=nNSeMmum3Ecoca2RFuQZS2BvbBA@mail.gmail.com> <20110406120207.GA32062@DataIX.net> <BANLkTi=EgjK6K2FrxhZJO-sNEmwCNbAweQ@mail.gmail.com> <5A6C513B-E30B-4E32-8556-D6501E8EE59B@gmail.com> <BANLkTinjnZWaahNyKofrktAjEN0Hgcg3BA@mail.gmail.com> <20110406181010.GB50909@DataIX.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Uhm ... what was the intended content of your message? And ... the RADIX_MPATH code is now considerably more flexible than just EC= MP. -Kip On Wed, Apr 6, 2011 at 8:10 PM, J. Hellenthal <jhell@dataix.net> wrote: > Hmmm funny, seems the mailing list is now stripping my address and > moving posts to the top. > > On Wed, Apr 06, 2011 at 06:15:19PM +0200, K. Macy wrote: >> The weights of the links can be changed at run time. If one link is >> not passing traffic its weight should be set to zero until such time >> as it is passing traffic again. >> >> On Wed, Apr 6, 2011 at 6:13 PM, Nikolay Denev <ndenev@gmail.com> wrote: >> > On Apr 6, 2011, at 5:36 PM, Michael Proto wrote: >> > >> >> On Wed, Apr 6, 2011 at 8:02 AM, J. Hellenthal <jhell@dataix.net> wrot= e: >> >>> On Wed, Apr 06, 2011 at 01:45:54PM +0400, Eir Nym wrote: >> >>>> On 1 April 2011 21:27, Baginski Darren <kickbsd@yandex.ru> wrote: >> >>>>> Hi! >> >>>>> >> >>>>> Could please someone tell me about current state of multiple gw ca= pabilities of FreeBSD? >> >>>>> I have dual homed FreeBSD box, one interface ISP1 another ISP2 : >> >>>>> 1) can I balance outgoing traffic across them ? >> >>>>> 2) Is there support of any kind dead gateway detection? >> >>>>> 3) Can I install multiple routes to the same network (with same an= d with different wight)? If yes how it behaves with one link failure, in pa= rticular if interface is down? >> >>>>> >> >>> >> >>> From what you said here it seems that your looking for lagg(4) with >> >>> configured with the loadbalance option. Give this man page [1] a >> >>> thorough read and youll probably see what your looking for. >> >>> >> >>> 1) http://www.freebsd.org/cgi/man.cgi?query=3Dlagg >> >>> >> >>> >> >>>> >> >>>> about multiply GWs: you can set multiply gw via setfib(1) utility a= nd >> >>>> use fib in your firewall rules. But it is not very handy with DHCP = and >> >>>> rc(8) (setfib is located in /usr/bin and can't be used in /etc/rc.d= ). >> >>>> Due to this I have to add another FreeBSD box to handle dynamic >> >>>> routes. >> >>>> >> >>>> This is the one thing I know which can I do in linux easily and in >> >>>> freebsd with hacks. >> >>> >> >>> -- >> >>> >> >>> =A0Regards, >> >>> >> >>> =A0J. Hellenthal >> >>> =A0JJH48-ARIN >> >>> =A00x89D8547E >> >>> >> >>> >> >> >> >> >> >> I don't think lagg(4) will work here, as its designed for two >> >> interfaces that are attached to the same network (see the example in >> >> the man page). For two different ISPs, I think the setfib approach is >> >> probably the way to go. >> >> >> >> >> >> -Proto >> >> >> > >> > Actually I think the OP is asking about the "options RADIX_MPATH" feat= ure. >> > >> > 1) Yes, It can balance over the two links but only using Modulo-N Hash= (RFC2991) algorithm, and probably you should setup NAT on both links. >> > 2) AFAIK there is no dead gw detection code yet. >> > 3) Yes you can do that. There were some fixes for handling interfaces = with no-link but I was not able to see it working in my setup. e.g. the hos= t still tries to send traffic to a interface with no link, effectively blac= kholing the traffic (this was tested on a soekris box with if_vr(4)) >> > >> > IMHO the whole RADIX_MPATH stuff is still in experimental stage and ne= eds some more work to work correctly. >> > >> > There is a recent thread about some improvements in RADIX_MPATH. >> > >> > Regards, >> > Nikolay >> > >> > _______________________________________________ >> > freebsd-net@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-net >> > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> > >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > -- > > =A0Regards, > > =A0J. Hellenthal > =A0JJH48-ARIN > =A00x89D8547E > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTi=579nrx%2BDahqaRgFpV2HJBpvQZeA>