Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Dec 2008 21:56:56 -0800
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        Ole Vole <subbsd@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: setfib not ready ?
Message-ID:  <20081209055656.GC44675@citylink.fud.org.nz>
In-Reply-To: <200812090851.36669.subbsd@gmail.com>
References:  <200812090851.36669.subbsd@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081209055656.GC44675>