From owner-freebsd-net@FreeBSD.ORG Wed Apr 6 14:36:30 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D12B106566B for ; Wed, 6 Apr 2011 14:36:30 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id B4D8A8FC16 for ; Wed, 6 Apr 2011 14:36:29 +0000 (UTC) Received: by ewy1 with SMTP id 1so511327ewy.13 for ; Wed, 06 Apr 2011 07:36:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.97.27 with SMTP id j27mr879249ebn.97.1302100588328; Wed, 06 Apr 2011 07:36:28 -0700 (PDT) Received: by 10.213.105.204 with HTTP; Wed, 6 Apr 2011 07:36:28 -0700 (PDT) In-Reply-To: <20110406120207.GA32062@DataIX.net> References: <1128701301678831@web100.yandex.ru> <20110406120207.GA32062@DataIX.net> Date: Wed, 6 Apr 2011 10:36:28 -0400 Message-ID: From: Michael Proto To: "J. Hellenthal" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Baginski Darren , freebsd-net@freebsd.org Subject: Re: Multiple gateways support X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2011 14:36:30 -0000 On Wed, Apr 6, 2011 at 8:02 AM, J. Hellenthal wrote: > On Wed, Apr 06, 2011 at 01:45:54PM +0400, Eir Nym wrote: >> On 1 April 2011 21:27, Baginski Darren wrote: >> > Hi! >> > >> > Could please someone tell me about current state of multiple gw capabi= lities 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 and wi= th different wight)? If yes how it behaves with one link failure, in partic= ular 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 and >> 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