From owner-freebsd-current@FreeBSD.ORG Tue Dec 9 05:57:03 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CE1A106564A for ; Tue, 9 Dec 2008 05:57:03 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id 1FD1B8FC08 for ; Tue, 9 Dec 2008 05:57:02 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 8725B2BC48; Tue, 9 Dec 2008 18:57:01 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pcUP+c6pwjN7; Tue, 9 Dec 2008 18:56:57 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Tue, 9 Dec 2008 18:56:57 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 58AEA11445; Tue, 9 Dec 2008 18:56:56 +1300 (NZDT) Date: Mon, 8 Dec 2008 21:56:56 -0800 From: Andrew Thompson To: Ole Vole Message-ID: <20081209055656.GC44675@citylink.fud.org.nz> References: <200812090851.36669.subbsd@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200812090851.36669.subbsd@gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-current@freebsd.org Subject: Re: setfib not ready ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2008 05:57:03 -0000 On Tue, Dec 09, 2008 at 08:51:36AM +0300, Ole Vole wrote: > Hello maillist, > > i want looking for multiple route table in HEAD. So, i try > > setfib -F 1 route add default 127.0.0.1 > setfib -F 1 netstat -rn > but it return: > setfib: 1: invalid FIB (max 0) > > (setfib -F 0 work correct- with netstat -rn print my default route table) > > sysctl: oid 'net.fibs' is read only for > > sysctl -w net.fibs=2 > however in the case seting net.fibs at loader stage (loader.conf) it not > change something for adding route table. > > Is setfib(2) not ready for testing yet ? You can only use loader.conf to set the numbre of fibs to a lower number than is compiled in to your kernel, use "options ROUTETABLES=2" in your kernel config instead (or more than 2 if needed). Andrew