From owner-freebsd-net@FreeBSD.ORG Wed Apr 6 11:58:48 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 71833106564A for ; Wed, 6 Apr 2011 11:58:48 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 34F4E8FC1D for ; Wed, 6 Apr 2011 11:58:47 +0000 (UTC) Received: from elsa.codelab.cz (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 7E2E219E02D; Wed, 6 Apr 2011 13:39:47 +0200 (CEST) Received: from [192.168.1.2] (ip-86-49-61-235.net.upcbroadband.cz [86.49.61.235]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 5935F19E02F; Wed, 6 Apr 2011 13:39:45 +0200 (CEST) Message-ID: <4D9C5100.3060806@quip.cz> Date: Wed, 06 Apr 2011 13:39:44 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.18) Gecko/20110320 SeaMonkey/2.0.13 MIME-Version: 1.0 To: Eir Nym References: <1128701301678831@web100.yandex.ru> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 11:58:48 -0000 Eir Nym wrote: > On 1 April 2011 21:27, Baginski Darren 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? > > 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. There were some attempts to add setfib support to rc.subr, but it was not committed: http://www.freebsd.org/cgi/query-pr.cgi?pr=conf/132483 I don't know the reason. Miroslav Lachman