static route - policy based routing in Bird,

Farhad ahdfra at gmail.com
Wed Aug 5 14:21:45 CEST 2020


Hello,

I am new to bird, there is something which I don't know how to achieve
using bird.
Is there a way in which I can forward traffics originated from a specific
network to some designated interfaces?

protocol kernel {
        ipv4 {
              table tabl1;
              export all;
        };
        kernel table 1;
}
protocol kernel {
        ipv4 {
              table tabl2;
              export all;
        };
        kernel table 2;
}
protocol static {
        ipv4 { table table1; };
        route 0.0.0.0/0 via 10.7.3.249 bfd
                        via 10.9.3.251 bfd;
}
protocol static {
        ipv4 { table table2; };
        route 0.0.0.0/0 via 10.8.3.244 bfd;
}

In linux i can do something like this:
*ip rule add type unicast from 1.0.0.1 table 1*
*ip rule add type unicast from 2.0.0.1 table 2*

Is there a way these rules can be achieved using filter or Pipe in Bird?
I am curious whether this can be done in Bird without depending on 'ip
rule' of linux.


Regards,
Farhad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20200805/2cef3eda/attachment.htm>


More information about the Bird-users mailing list