-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 6.3.2015 17:53, Anand Buddhdev wrote: > Dear BIRD users, > > I'm setting up BIRD 1.4.5 as a router for an AS112 anycast > instance. I've got the router running and creating peering > sessions with peers, and also importing prefixes from them into > the kernel. > > However, it's not exporting my prefix, and I'm afraid I don't > understand why. I'm quite new to BIRD, so please bear with me if > my question looks naive. I would appreciate any clues.
Dear Anand, the problem is caused by the fact that device routes are handled differently than the others. Protocol 'kernel' ignores those routes and they are generated by protocol 'direct'. And this routing protocol is connected to routing table 'master' in you example. So this route is not in routing table 'anycast'. You should see it byt 'show route table master' and not 'show route table anycast'. There are more ways how to fix this: 1) Use only routing table 'master'. Is there a reason for using special routing table in this case? 2) Generate this routing in routing table 'anycast' a) You can either attach protocol 'direct' to table 'anycast': protocol direct { interface "dummy0*"; table anycast; } b) Or you can export this route using protocol 'pipe' protocol pipe { # The Pipe table master; peer table anycast; export filter as112; }; c) Or you can generate it using protocol 'static': protocol static { route 192.75.48.0/24 via "dummy0"; table anycast; }; There is even more ways of course. But I hope this is gonna help you. Ondrej > > My configuration looks like this: > > list bgp address <myaddr>; router id <myaddr>; tabe anycast; > > filter as112 { if net = 192.75.48.0/24 then accept; reject; } > > protocol direct { interface "dummy0*"; } > > protocol device { } > > protocol kernel { export all; kernel table 10; table anycast; } > > protocol bgp { export filter as112; local <myaddr> as 112; > neighbor <peeraddr> as <peeras>; table anycast; } > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJU+iC9AAoJED82D4RIDoWPZeYP/3HycrXu8r4d5tZwzrEkALny tgaW+UNstO65q4RK5h1kvZBFJDKSnE7VttCTxYh5HWCZNeSPHXAev92ZTOaR2e6H W7ByF+ANsyOHRi7yB9zs7tyiNjonlSX+snM9fG0nJDbXdlnNK5iu8RF67CBphf8V 6QkLPIwvY3C4yAvy1UDdUXwBoTiaz2tmsbmeYQduDbehcGcl8yRlkKAa9mcgeN1i cZsZjaG39OoZ/oYt1yKdAAH6gXSF83wl0bNeFgxCzcxoONJSRb2pu7O/z3s3ZC0m Jtz6BWYoqNqXSu1brj7/GfJic00SLGHf36XuUun6zHJyqmDFrTyUcUmT3YZCvbJU Hj/ljR8Xhsp/7wOIsmh2oMVm5N4yqcXv1aXSTCzDwi3HBZaaG3UmySVIQzskyxj8 SR4E/qnOVFcJjGv+cnBt2CqC7ayurrMsppDTNSWCPS3l0xoShCRytR0OVGWNr6fZ YfOALj04Xk8VVveiBmHdjWNJJYCIGi9oQIJU7ITWyQVX74syPDFuGMQ9m3yxkqKr XFo2N2eLpTW4EJHdGfXKtkf/GoQ31VjrCvpznjmyf0XITX2k5ASfcWefnRhW2+Vg 5/U1NjIy2nOsbw+P/+zeCvgUP9lzyZyBckVKBnEQ6oINzRw+ORAEOvHNbxQCxTOn wrbUk+o0SSjfWuLN1+qH =Yuin -----END PGP SIGNATURE-----