Bird can't add static route.
Hello! Just to be sure, does it work via iptools command, like ip route add…? Thanks Maria On August 19, 2020 5:10:18 PM GMT+02:00, Mikhail Petrov <azalio@azalio.net> wrote:
Hello!
I have a problem with bird, static routes and multipath.
My bird config is https://pastebin.com/gLkFP6rK
And all work well.
#ip ro sh
10.0.0.0/8 proto bird src 10.8.49.68
nexthop via 10.28.133.65 dev enp96s0f0.52 weight 1
nexthop via 10.28.133.129 dev enp96s0f1.55 weight 1
...
Then I add
krt_realm = 42; to static section
protocol static {
check link;
route 10.0.0.0/8 recursive 203.0.113.1;
import filter { krt_realm = 42;
krt_prefsrc = 10.8.49.68;
accept;
};
}
Bird can't add static routes and I don't understand why.
If I don't use multipath routing bird can add routes. For example:
10.0.0.0/8 via 10.28.133.65 dev enp3s0f1.52 proto bird src 10.8.49.34 realm nohbf
What do I need to do to resolve the problem?
Thank you for your attention.
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Yes, it works. # ip ro add 10.8.8.8/32 src 10.8.49.68 nexthop via 10.28.133.65 dev enp96s0f0.52 weight 1 realm nohbf nexthop via 10.28.133.129 dev enp96s0f1.55 weight 1 realm nohbf # ip ro sh 8.8.8.8/32 8.8.8.8 src 10.8.49.68 nexthop via 10.28.133.65 realm nohbf dev enp96s0f0.52 weight 1 nexthop via 10.28.133.129 realm nohbf dev enp96s0f1.55 weight 1 Thank you!
On 19 Aug 2020, at 18:53, Maria Matějka <maria.matejka@nic.cz> wrote:
Hello! Just to be sure, does it work via iptools command, like ip route add…? Thanks Maria
On August 19, 2020 5:10:18 PM GMT+02:00, Mikhail Petrov <azalio@azalio.net> wrote: Hello!
I have a problem with bird, static routes and multipath. My bird config is https://pastebin.com/gLkFP6rK <https://pastebin.com/gLkFP6rK> And all work well. #ip ro sh 10.0.0.0/8 proto bird src 10.8.49.68 nexthop via 10.28.133.65 dev enp96s0f0.52 weight 1 nexthop via 10.28.133.129 dev enp96s0f1.55 weight 1 ...
Then I add krt_realm = 42; to static section protocol static { check link; route 10.0.0.0/8 recursive 203.0.113.1; import filter { krt_realm = 42; krt_prefsrc = 10.8.49.68; accept; }; } Bird can't add static routes and I don't understand why.
If I don't use multipath routing bird can add routes. For example: 10.0.0.0/8 via 10.28.133.65 dev enp3s0f1.52 proto bird src 10.8.49.34 realm nohbf
What do I need to do to resolve the problem? Thank you for your attention.
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
On Wed, Aug 19, 2020 at 06:10:18PM +0300, Mikhail Petrov wrote:
Hello! I have a problem with bird, static routes and multipath. My bird config is https://pastebin.com/gLkFP6rK And all work well. #ip ro sh 10.0.0.0/8 proto bird src 10.8.49.68 nexthop via 10.28.133.65 dev enp96s0f0.52 weight 1 nexthop via 10.28.133.129 dev enp96s0f1.55 weight 1
Then I add krt_realm = 42; ... Bird can't add static routes and I don't understand why.
Hello (Noticed while looking for some missed / forgotten e-mails) Thanks for bugreport, there was a bug in krt_realm handling for multipath routes, fixed in: https://gitlab.nic.cz/labs/bird/-/commit/21f9acd2a01306af01f19914105985a8a0f...
... If I don't use multipath routing bird can add routes. For example: 10.0.0.0/8 via 10.28.133.65 dev enp3s0f1.52 proto bird src 10.8.49.34 realm nohbf What do I need to do to resolve the problem? Thank you for your attention.
-- 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."
participants (4)
-
Maria Matějka -
Mikhail Petrov -
Ondrej Zajicek -
Petrov Mikhail