W dniu 15.06.2021 o 16:04, Alexander Zubkov pisze:
Oh, looks like FreeBSD does not have metric for the routes. So yes, it is not the possibility then.
Probably it can be done. FreeBSD routing stack was significantly changed[1] during last year. It gained support for ECMP[2] via nexthop groups[3] and all routes have weigths[2] now. Likely only FRR received some updates to support this new routing stack.
On Tue, Jun 15, 2021 at 3:24 PM Ondrej Zajicek <santiago@crfreenet.org> wrote:
On Tue, Jun 15, 2021 at 02:50:09PM +0200, Alexander Zubkov wrote:
Hi,
I think it is intentional so that bird should not meddle with "foreign" routes. In Linux, for example, it uses it's own protocol label and does not touch other routes. It can import them, but does not change them.
Hi
Yes, that is true.
In your situation, I think the optimal solution is to have your original default routes with some high metric, so that bird's default should override it later. In that case it will not need to replace routes it does not own, because usually you can have routes with the same prefix but different metrics simultaneousely in your routing table.
That works in Linux, but i do not think it works in FreeBSD. AFAIK there is only one route per network there.
Using -proto1 -nostatic for route is an easy way how to workaround this issue on BSD.
-- Elen sila lumenn' omentielvo
Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
[1] https://reviews.freebsd.org/D24141 [2] https://reviews.freebsd.org/D26449 [3] https://reviews.freebsd.org/D24232 -- Marek Zarychta