Bug 145440

Summary: [rc.d] [patch] add multiple fib support (setfib) in /etc/rc.d/routing
Product: Base System Reporter: Mark Harrison <mark>
Component: confAssignee: Hiroki Sato <hrs>
Status: Open ---    
Severity: Affects Only Me CC: olivier
Priority: Normal    
Version: 8.0-RELEASE   
Hardware: Any   
OS: Any   
Description Flags
file.diff none

Description Mark Harrison 2010-04-06 21:30:06 UTC
It is not possible to set up static/default routes for alternate fib on startup via rc.conf. The current method is to use rc.local and manually run 'setfib <n> route add ...'

Fix: This patch adds support for setting up static routes in alternate fibs in
rc.conf. For fibs other than 0, append _fib<n> to the relevant configuration
options normally dealt with by the routing rc script.


static_routes_fib1="foo bar"

This requires that multiple fib support be compiled into the kernel.

In addition, the stop function flushes routes for all fibs on the system.

Patch attached with submission follows:
How-To-Repeat: Recompile the kernel with multiple fib support (sysctl net.fibs should be > 1). Try to set up static routes for a fib > 0.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2010-04-07 00:17:03 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-rc

Over to maintainer(s).
Comment 2 Hiroki Sato freebsd_committer 2012-01-23 04:47:04 UTC
Responsible Changed
From-To: freebsd-rc->hrs

I'll take this.
Comment 3 Olivier Cochard freebsd_committer 2016-03-14 15:17:40 UTC
Any news about integrating this patch ?
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2018-05-28 19:44:32 UTC
batch change:

For bugs that match the following
-  Status Is In progress 
- Untouched since 2018-01-01.
- Affects Base System OR Documentation


Reset to open status.

I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed.