Bird can't add static route.
Petrov Mikhail
azalio at azalio.net
Wed Aug 19 17:56:13 CEST 2020
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 at 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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20200819/41f2b04c/attachment.htm>
More information about the Bird-users
mailing list