[Bug 255264] Unable to add default route for fib

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 14 Apr 2022 18:04:38 UTC

--- Comment #8 from Mitja Horvat <pinkfluid@gmail.com> ---
(In reply to Marek Zarychta from comment #7)
Thank you very much for the prompt response. Indeed, setting the fib of the re0
interface 1 makes the route work. However this causes all the traffic routed
through re0 to use fib 1 as default, which is not really what I want.

The use case I'm trying to solve is to have a mix of processes/jail running on
fib 1 using setfib, everything else should go through the interface normally
using fib 0.

Even if it's a feature, I find it very strange that a valid static route would
fail if there's no carrier. I even tried unplugging the ethernet cable and the
script above basically loops until I connect the cable and carrier is detected.

I think I'll play with pf to get what I need (or just reset re0's fib to 0 in
rc.local), but I still find this to be a very peculiar behavior.

You are receiving this mail because:
You are the assignee for the bug.