Created attachment 247446 [details] It's a patch :) _fibs appears to be unvalued in /etc/rc.d/routing:static_inet(), the following from a `set -x` invocation: + static_routes='_loopback ' + route__loopback='-inet 127.0.0.1 -iface lo0 ' + [ -gt 0 ] [: -gt: unexpected operator _fibs appears only as a local variable in /etc/rc.d/routing, it isn't a local in static_inet() so possibly it should be exported in the environment? I'm not familiar enough with FreeBSD networking to know... Adding a get_fibs() function that always returns a non-negative value removes the error message on my system, but (again) I don't know if this is the right fix. I don't use inet6, but it appears the same is true for static_inet6(). Patch attached. Thanks for all your efforts around and for FreeBSD!
Hmm, this patch doesn't apply to stable/13, stable/14, releng/14.0, or main. Those versions all include a _fibs local variable in both the static_inet and static_inet6 functions that is initialized directly in the function via the sysctl. Do you have a locally modified version of the /etc/rc.d/routing script?