From owner-freebsd-isp@FreeBSD.ORG Thu Sep 6 23:36:49 2007 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D325216A419 for ; Thu, 6 Sep 2007 23:36:49 +0000 (UTC) (envelope-from rymkus@inbox.ru) Received: from mx28.mail.ru (mx28.mail.ru [194.67.23.67]) by mx1.freebsd.org (Postfix) with ESMTP id 8F7D013C467 for ; Thu, 6 Sep 2007 23:36:49 +0000 (UTC) (envelope-from rymkus@inbox.ru) Received: from mx33.mail.ru (mx33.mail.ru [194.67.23.194]) by mx28.mail.ru (mPOP.Fallback_MX) with ESMTP id 5A2ED3C893D; Fri, 7 Sep 2007 01:45:50 +0400 (MSD) Received: from [89.113.73.62] (port=3098 helo=localhost) by mx33.mail.ru with esmtp id 1ITPAa-000G5V-00; Fri, 07 Sep 2007 01:45:48 +0400 Date: Fri, 7 Sep 2007 01:45:46 +0400 From: "A. Rymkus" X-Mailer: The Bat! (v3.99.3) Professional X-Priority: 3 (Normal) Message-ID: <9710288047.20070907014546@inbox.ru> To: Steffen Schumacher In-Reply-To: <20070822080112.GA58627@schumacher.dk> References: <20070822080112.GA58627@schumacher.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-isp@freebsd.org Subject: Re: Using FreeBSD as a router X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "A. Rymkus" List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2007 23:36:49 -0000 Hello Steffen, Wednesday, August 22, 2007, 12:01:12 PM, you wrote: SS> Hi! SS> This may b the wrong list, but you might know the right one.. SS> I'm using the port quagge (zebra spin-off) in order to run bgp SS> off of two freebsd boxes, serving as routers. SS> They receive a default candidate from bgp: a/b. SS> The aim is to configure a static default with a next-hop of a/b. SS> This way the isp doesn't have to announce a 0/0, and I will still SS> have a default pointing the right way. SS> (I'm getting the a/b in from two separate lines for redundancy). SS> My problem is that I can't make the default work. SS> I use 'route default a/b' which actually shows up in 'netstat -rnf inet' SS> but it still doesn't work. SS> I've enclosed a lot of debug output. SS> Can anyone point me in the right direction? [skipped] You have to get your default routes from your ISPs' BGP peers and choose appropriate route to the outer world by 'weight' parameter or by 'local preference' parameter. But ,if you're in need of static-only routing, then you have to configure your zebra/quagga router app by making changes in it's configs or by connection to zebra's admin cli - 'telnet localhost zebra' (replase zebra with 'quagga' if you need) and add next string: 'ip route 0.0.0.0/0 ' 'ip route 0.0.0.0/0 ' after committin' changes to zebra it will automatically resolve dead default route and choose another. And you have to be sure what your kernel's router is replased with zebra's! -- Best regards, A. mailto:rymkus@inbox.ru