PDA

View Full Version : [Solved] Documentation for setfib(2) in FreeBSD-HEAD


Ole
December 8th, 2008, 21:39
Hello,

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 ?

brd@
December 8th, 2008, 23:13
You should probably post this info to the freebsd-current mailing list.

TheCHOSEN
December 9th, 2008, 08:38
Do you add "options ROUTETABLES" to your kernel?
If not, you need to add this option to kernel conf and compile new kernel.

options ROUTETABLES=4

The digit is max number of routing tables

Ole
December 9th, 2008, 09:28
Do you add "options ROUTETABLES" to your kernel?
If not, you need to add this option to kernel conf and compile new kernel.

options ROUTETABLES=4

The digit is max number of routing tables

Thanks, to regret the man pages information is not obviously.