Bug 149867

Summary: [patch] rc.fibs(5): new rc.d script to manage multiple FIBS (kern options ROUTETABLES)
Product: Base System Reporter: Allan Jude <freebsd>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me CC: emaste
Priority: Normal Keywords: patch
Version: 8.1-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.txt none

Description Allan Jude 2010-08-22 05:40:01 UTC
When you use the kernel option ROUTETABLES to enable multiple FIBs, there
is not clean way to manage the static routes (including default gateway)
for those FIBs

this is an /etc/rc.d script to do that, based on /etc/rc.d/routing and
static_routes in /etc/rc.conf

Fix: in /etc/rc.conf or the like, configure like this:

fib_1_routes="default sitea"
fib_1_default="default 192.168.0.1"
fib_1_sitea="-net 192.168.1.0/24 192.168.0.2"

fib_2_routes="gate"
fib_2_gate="default 10.0.0.254"


Patch attached with submission follows:
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2010-08-22 05:47:16 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-rc

New script.  Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:58:33 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:40:33 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>