BIRD trying to reinsert existing kernel routes, netlink issue?

Maria Matějka maria.matejka at nic.cz
Sun Aug 2 20:48:37 CEST 2020


Hello!
BIRD reads the routes from kernel anyway, the import clause applies only on learned external routes. Do you have any export filter on that kernel protocol? Don't you have any suspicious warnings in log?
Maria

On August 2, 2020 7:08:11 PM GMT+02:00, Alarig Le Lay <alarig at swordarmor.fr> wrote:
>Hi Sasha,
>
>On Sun 02 Aug 2020 17:36:13 GMT, Sasha Romijn wrote:
>> protocol kernel {
>>     scan time 20;
>>     ipv4 {
>>         export all;
>>         import none;
>>     };
>> }
>
>I think that the issue is there, you’re not importing routes from the
>kernel, so bird doesn’t know that they exist, but you export all routes
>to it. So it ends up by resending an already existing route.
>
>And for example, on my of my routers :
>bird> show route all 80.213.72.0/22
>Table master4:
>80.213.72.0/22       unicast [direct1 2020-07-24] * (240)
>	dev enp2s0
>	Type: device univ
>                     unicast [kernel_grt_ipv4 2020-07-24] (10)
>	dev enp2s0
>	Type: inherit univ
>	Kernel.source: 16
>	Kernel.metric: 3
>	Kernel.prefsrc: 80.213.74.176
>	Kernel.scope: 253
>
>This route is learned from both direct1 and kernel_grt_ipv4, so it
>would
>be re-sent to the kernel if I remove the "import all".
>
>Regards,
>-- 
>Alarig

-- 
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/20200802/7ac0cc2a/attachment.htm>


More information about the Bird-users mailing list