From owner-freebsd-net@FreeBSD.ORG Tue Oct 19 16:31:37 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2B2C16A4CE for ; Tue, 19 Oct 2004 16:31:37 +0000 (GMT) Received: from grosbein.pp.ru (grgw.svzserv.kemerovo.su [213.184.64.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6ACB943D1D for ; Tue, 19 Oct 2004 16:31:32 +0000 (GMT) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (eugen@localhost [127.0.0.1]) by grosbein.pp.ru (8.12.11/8.12.11) with ESMTP id i9JGVTBm001269; Wed, 20 Oct 2004 00:31:29 +0800 (KRAST) (envelope-from eugen@grosbein.pp.ru) Received: (from eugen@localhost) by grosbein.pp.ru (8.12.11/8.12.11/Submit) id i9JGVSek001268; Wed, 20 Oct 2004 00:31:28 +0800 (KRAST) (envelope-from eugen) Date: Wed, 20 Oct 2004 00:31:28 +0800 From: Eugene Grosbein To: Vladimir Terziev Message-ID: <20041019163128.GA1201@grosbein.pp.ru> References: <20041019180042.553c1af0@daemon.cmotd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041019180042.553c1af0@daemon.cmotd.com> User-Agent: Mutt/1.4.1i cc: freebsd-net@freebsd.org Subject: Re: Quagga & ripd difficulty X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2004 16:31:37 -0000 > One of my VPN peer servers has two VPN connections to every one of the other VPN peers. For quagga these are 2 equal-cost routes. When both of the VPN connections are established, quagga randomly preffers one of them and routes all VPN traffic via it. When one of the connections is not present (not connected) the VPN traffic is routed via the connected one. All this is fine, but i have the desire one of the routes to be prefferable when both of them are present. I mean the following ... if i have > > Net-1 <-> VPN-Peer-1 <----- A -----> VPN-Peer-2 <-> Net-2 > Net-1 <-> VPN-Peer-1 <----- B -----> VPN-Peer-2 <-> Net-2 > > quagga to create a route between Net-1 and Net-2 always via connection A if both of the connections are present. > Any ideas are welcome! For RIP, there is a metric manipulation technique: router can artifically increase metrics of some of received routes when these routes come from a distinct neighbour or via distinct inteface. For RIP there is offset-list command but it is not implemented yet AFAIK. Eugene