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.
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
  1. protocol static {
  2. check link;
  3. route 10.0.0.0/8 recursive 203.0.113.1;
  4. import filter {
    krt_realm = 42;
  5. krt_prefsrc = 10.8.49.68;
  6. accept;
  7. };
  8. }
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.