Bug 145440 - [rc.d] [patch] add multiple fib support (setfib) in /etc/rc.d/routing
Summary: [rc.d] [patch] add multiple fib support (setfib) in /etc/rc.d/routing
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 8.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Hiroki Sato
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-06 21:30 UTC by Mark Harrison
Modified: 2018-05-28 19:44 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (1.95 KB, patch)
2010-04-06 21:30 UTC, Mark Harrison
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.

E.g.

static_routes_fib1="foo bar"
defaultrouter_fib1="10.0.0.1"

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 
AND
- Untouched since 2018-01-01.
AND
- Affects Base System OR Documentation

DO:

Reset to open status.


Note:
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.