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:
Responsible Changed From-To: freebsd-bugs->freebsd-rc New script. Over to maintainer(s).
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
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>