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.
Responsible Changed From-To: freebsd-bugs->freebsd-rc Over to maintainer(s).
Responsible Changed From-To: freebsd-rc->hrs I'll take this.
Any news about integrating this patch ?
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.
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>