From owner-freebsd-questions@FreeBSD.ORG Thu Jul 16 18:04:26 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 635F0106566C for ; Thu, 16 Jul 2009 18:04:26 +0000 (UTC) (envelope-from brentb@beanfield.com) Received: from smtp0.beanfield.net (smtp0.beanfield.net [66.207.192.7]) by mx1.freebsd.org (Postfix) with ESMTP id 2C49E8FC29 for ; Thu, 16 Jul 2009 18:04:26 +0000 (UTC) (envelope-from brentb@beanfield.com) Received: from brent.local ([66.207.193.249]) by smtp0.beanfield.net (8.13.4/8.12.11) with ESMTP id n6GI268B092228; Thu, 16 Jul 2009 14:02:07 -0400 (EDT) (envelope-from brentb@beanfield.com) Message-ID: <4A5F6BA4.9050707@beanfield.com> Date: Thu, 16 Jul 2009 14:04:20 -0400 From: Brent Bloxam Organization: Beanfield Technologies User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: Mel Flynn References: <4A5F3D48.608@beanfield.com> <4A5F651D.9050205@beanfield.com> <4A5F679F.3000705@gmx.com> <200907161000.18544.mel.flynn+fbsd.questions@mailing.thruhere.net> In-Reply-To: <200907161000.18544.mel.flynn+fbsd.questions@mailing.thruhere.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, Nikos Vassiliadis Subject: Re: FreeBSD & FIBs (setfib) - How to modify? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2009 18:04:26 -0000 Mel Flynn wrote: > I guess the main question here is "what is 10?" or what is an FIB?. How does > one create such an FIB id (which I can't find in docs either). For example, on > my system if I do: > % setfib 2 fetch http://www.freebsd.org/docs.html > setfib: 2: invalid FIB (max 0) > > I would expect to see some info in > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-routing.html > > Naturally there's some info here: > http://en.wikipedia.org/wiki/Forwarding_information_base > > but that doesn't have any practical information on how to create one. I'm not sure if you're curious or trying to clarify on my question, but I'm past the point of creating and was interested in modifying. Just incase anyone is interested, see the end of the 7.1-RELEASE Errata here: http://www.freebsd.org/releases/7.1R/errata.html > FreeBSD now supports multiple routing tables. To enable this, the following steps are needed: > > * > > Add the following kernel configuration option and rebuild the kernel. The 2 is the number of FIB (Forward Information Base, synonym for a routing table here). The maximum value is 16. > > options ROUTETABLES=2 > > The procedure for rebuilding the FreeBSD kernel is described in the FreeBSD Handbook. > > This number can be modified on boot time. To do so, add the following to /boot/loader.conf and reboot the system: > > net.fibs=6 > Note that net.fibs can only be modified _after_ the kernel has been compiled with the ROUTETABLES option. You can view the current settings related to FIBs with sysctl