Importing/exporting only static routes from the kernel

Rob Greenwood bilco105 at gmail.com
Wed May 29 13:27:26 CEST 2013


Hi,

I'm wondering if there is a way with bird to only import static routes from
the kernel routing table. Routes are currently being managed directly in
the linux routing table via keepalived, however, I want to announce them
out via BGP.

I have tried just;

kernel {
  import all;
  export all;
}

and this picks up the routes I want, however, it also imports a load of
unreachable routes that I don't want to advertise.

[root at infra-fw1a ~]# birdc6 show route protocol kernel1
BIRD 1.3.9 ready.
::/96                   unreachable [kernel1 11:55] * (10)
2002:a00::/24      unreachable [kernel1 11:55] * (10)
3ffe:ffff::/32         unreachable [kernel1 11:55] * (10)
2002:7f00::/24     unreachable [kernel1 11:55] * (10)
2002:a9fe::/32     unreachable [kernel1 11:55] * (10)
2002:ac10::/28    unreachable [kernel1 11:55] * (10)
2a03:b200:0:2::/64 via 2a03:b200:1:2::2 on eth1.227 [kernel1 11:55] * (10)
2002:e000::/19     unreachable [kernel1 11:55] * (10)
2002:c0a8::/32     unreachable [kernel1 11:55] * (10)
::ffff:0.0.0.0/96     unreachable [kernel1 11:55] * (10)
[root at infra-fw1a ~]#

I know I can probably filter these, but that seems less ideal. Is there a
way of just importing the reachable routes?

Thanks,
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20130529/f4169f8f/attachment.html>


More information about the Bird-users mailing list