From owner-freebsd-net@FreeBSD.ORG  Wed Apr  6 10:08:18 2011
Return-Path: <owner-freebsd-net@FreeBSD.ORG>
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 A543B1065672
	for <freebsd-net@freebsd.org>; Wed,  6 Apr 2011 10:08:18 +0000 (UTC)
	(envelope-from eirnym@gmail.com)
Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com
	[209.85.214.54])
	by mx1.freebsd.org (Postfix) with ESMTP id 3A3CB8FC13
	for <freebsd-net@freebsd.org>; Wed,  6 Apr 2011 10:08:17 +0000 (UTC)
Received: by bwz12 with SMTP id 12so1246131bwz.13
	for <freebsd-net@freebsd.org>; Wed, 06 Apr 2011 03:08:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc:content-type;
	bh=KMQCUfm35+FCY+0TZaEg7CSSK9AAprW8l7r47RTC+98=;
	b=JVd+KGeaVCZrpBpvR0ZYruHM5UxXRmGY238w2vSioxZklckR9R4eGf8C7KuukL/nLN
	rtG5dw8AxRcvu8lVy3yIw15edrq9RpH7JHwlE6imEyhpYDWH8OAZcUOPH24rYJcVnU2T
	GxO4a6hACKjP3Wp7AGAabr2OmfCkwB4quJK5o=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type;
	b=Sta+GMY0FRvPssyR64QhX6bt3nWRE0opKSbZ70U40M34tqxYrH9KUVjzQCJBEjFk3Z
	qJDOyNLMnDJL70lPzNUwsuKjzpiXKVpLOwxiwLLlxm0CYTQzFiNGBNJjUefxS23wuhFR
	K5gZ688pXoAlma2wJcxW85jN3fMLCicc8h30M=
Received: by 10.204.7.213 with SMTP id e21mr563728bke.209.1302083174142; Wed,
	06 Apr 2011 02:46:14 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.204.154.211 with HTTP; Wed, 6 Apr 2011 02:45:54 -0700 (PDT)
In-Reply-To: <1128701301678831@web100.yandex.ru>
References: <1128701301678831@web100.yandex.ru>
From: Eir Nym <eirnym@gmail.com>
Date: Wed, 6 Apr 2011 13:45:54 +0400
Message-ID: <BANLkTi=nNSeMmum3Ecoca2RFuQZS2BvbBA@mail.gmail.com>
To: Baginski Darren <kickbsd@yandex.ru>
Content-Type: text/plain; charset=UTF-8
Cc: 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 <freebsd-net.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>,
	<mailto:freebsd-net-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-net>
List-Post: <mailto:freebsd-net@freebsd.org>
List-Help: <mailto:freebsd-net-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>,
	<mailto:freebsd-net-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 06 Apr 2011 10:08:18 -0000

On 1 April 2011 21:27, Baginski Darren <kickbsd@yandex.ru> wrote:
> Hi!
>
> Could please someone tell me about current state of multiple gw capabilities 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 with different wight)? If yes how it behaves with one link failure, in particular if interface is down?
>
> Thank you!
> _______________________________________________
> 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"
>

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.