From owner-freebsd-net@FreeBSD.ORG Mon Feb 18 22:30:40 2008 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 5233216A46E for ; Mon, 18 Feb 2008 22:30:40 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 0516A13C447 for ; Mon, 18 Feb 2008 22:30:39 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender:X-Spam-Status:Subject; b=Dtb/QBZhmxxNWcpirXwbOxfowWml6rPWXMPWRe9hlw+wOxLdz/eF2QGaHBZ8jUlF2CawWdyRgNIvu06G2ZGGCSGvDsPdg/gOJXcNbsKuiQJ5m03z/JDoB4ykkif0SciQCuPcLKDnslRCgUV3MFTl3EfPfrAx+da7IQ8qgKRG8hM=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1JREVQ-000NB9-QQ; Tue, 19 Feb 2008 01:30:37 +0300 Date: Tue, 19 Feb 2008 01:30:35 +0300 From: Eygene Ryabinkin To: Bill Moran Message-ID: <7fVLvU+n7M2cgKK91Qkc92dxOZA@X/bj7yIvzuBvWMya3JMW3Pm7mBA> References: <38308.1203368454@thrush.ravenbrook.com> <20080218163618.5e6672d3.wmoran@collaborativefusion.com> <6xiZ7xvVdDqVhj0EdhE90pfdIcQ@S1JitD8kpKQ9sTxL7Qyzy/kv7rU> <20080218170642.e079540d.wmoran@collaborativefusion.com> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20080218170642.e079540d.wmoran@collaborativefusion.com> Sender: rea-fbsd@codelabs.ru X-Spam-Status: No, score=-1.7 required=4.0 tests=ALL_TRUSTED,AWL,BAYES_50 Cc: Nick Barnes , freebsd-net@freebsd.org Subject: Re: Multiple default routes on multihome host 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: Mon, 18 Feb 2008 22:30:40 -0000 Mon, Feb 18, 2008 at 05:06:42PM -0500, Bill Moran wrote: > > I had faced such situation once: I had multihomed host that was > > running Apache daemon that was announced via two DNS names that > > were corresponding to two different IPs, going via two different > > providers. When the first provider's link goes down, the second > > provider is still alive, and when both providers are alive, the > > traffic is balanced via DNS round-robin alias. Do you see some > > better way to do it via CARP, RIP, something different? I am still > > interested in other possibilities. > > The canonical way to do this is with BGP. Yes, thus there will be only one IP, but it will be routed via either provider, balanced across links and if one link will fail, AS will be announced via the second one. Right? And how would you say to your box: 'OK, this packet originates from the IP1 that should go to the GW1, and the other originates from IP2, so it should be forced to go via GW2'. I want symmetric routing for both of these IPs. Tried to imagine how it can be done via BGP, but was not able to figure out. Any practical examples? > I can be done with CARP > if both providers support it and are willing to work together. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Very, very unlikely for me ;)) Thank you. -- Eygene