Mainly for lab experimentation, I would like to be able to dynamically inject several IPv6 routes into BGP. Creating a static route on the Linux running BIRD does not seem to grab the kernel route (even when doing "ip -6 route add ... proto [static|kernel]..." My config has "import all;export all" for kernel & device protocols + "learn on" What am I missing? Is it possible with BIRD without having to configure those routes in protocol static and reload BIRD? (which is a little too heavy for my environment) Thanks in advance -éric
Hello! Sorry for off-topic posing here but you could try GoBGP for this task. Bird is awesome for route server but for route-injection you could use something more lightweight. It's very simple and do it with one API command: gobgp global rib add 2001:123:123:1::/64 -a ipv6 gobgp global rib del 2001:123:123:1::/64 -a ipv6 Configuration also very straightforward /etc/gobgpd.conf: [global.config] as = 198068 router-id = "10.0.3.115" [[neighbors]] [neighbors.config] neighbor-address = "10.0.3.116" peer-as = 9010 [neighbors.ebgp-multihop.config] enabled = true [[neighbors.afi-safis]] afi-safi-name = "ipv6-unicast" On Fri, Apr 15, 2016 at 11:53 PM, Eric Vyncke (evyncke) <evyncke@cisco.com> wrote:
Mainly for lab experimentation, I would like to be able to dynamically inject several IPv6 routes into BGP.
Creating a static route on the Linux running BIRD does not seem to grab the kernel route (even when doing "ip -6 route add ... proto [static|kernel]..." My config has "import all;export all" for kernel & device protocols + "learn on"
What am I missing? Is it possible with BIRD without having to configure those routes in protocol static and reload BIRD? (which is a little too heavy for my environment)
Thanks in advance
-éric
-- Sincerely yours, Pavel Odintsov
Another solution I use is exabgp as a route injector to bird. Regards, Le 15/04/2016 à 23:04, Pavel Odintsov a écrit :
Hello!
Sorry for off-topic posing here but you could try GoBGP for this task. Bird is awesome for route server but for route-injection you could use something more lightweight.
It's very simple and do it with one API command: gobgp global rib add 2001:123:123:1::/64 -a ipv6 gobgp global rib del 2001:123:123:1::/64 -a ipv6
Configuration also very straightforward /etc/gobgpd.conf: [global.config] as = 198068 router-id = "10.0.3.115"
[[neighbors]] [neighbors.config] neighbor-address = "10.0.3.116" peer-as = 9010 [neighbors.ebgp-multihop.config] enabled = true
[[neighbors.afi-safis]] afi-safi-name = "ipv6-unicast"
Yep ExaBGP is working really nice for this case too. I've been working for a while with it. On Mon, Apr 25, 2016 at 12:31 PM, Raphael Mazelier <raph@futomaki.net> wrote:
Another solution I use is exabgp as a route injector to bird.
Regards,
Le 15/04/2016 à 23:04, Pavel Odintsov a écrit :
Hello!
Sorry for off-topic posing here but you could try GoBGP for this task. Bird is awesome for route server but for route-injection you could use something more lightweight.
It's very simple and do it with one API command: gobgp global rib add 2001:123:123:1::/64 -a ipv6 gobgp global rib del 2001:123:123:1::/64 -a ipv6
Configuration also very straightforward /etc/gobgpd.conf: [global.config] as = 198068 router-id = "10.0.3.115"
[[neighbors]] [neighbors.config] neighbor-address = "10.0.3.116" peer-as = 9010 [neighbors.ebgp-multihop.config] enabled = true
[[neighbors.afi-safis]] afi-safi-name = "ipv6-unicast"
-- Sincerely yours, Pavel Odintsov
On Fri, Apr 15, 2016 at 08:53:36PM +0000, Eric Vyncke (evyncke) wrote:
Mainly for lab experimentation, I would like to be able to dynamically inject several IPv6 routes into BGP.
Creating a static route on the Linux running BIRD does not seem to grab the kernel route (even when doing "ip -6 route add ... proto [static|kernel]..." My config has "import all;export all" for kernel & device protocols + "learn on"
If BIRD did not learn the route (i.e., it is not seen in 'show route'), then you could check logs for errors, or add 'debug all' to the kernel protocol. Options import, export for device protocol is irrelevant. Note that you would need export all also for BGP protocol. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
Indeed the debug provided enough information to make it work :-) On 16/04/16 01:03, "Ondrej Zajicek" <santiago@crfreenet.org> wrote:
On Fri, Apr 15, 2016 at 08:53:36PM +0000, Eric Vyncke (evyncke) wrote:
Mainly for lab experimentation, I would like to be able to dynamically inject several IPv6 routes into BGP.
Creating a static route on the Linux running BIRD does not seem to grab the kernel route (even when doing "ip -6 route add ... proto [static|kernel]..." My config has "import all;export all" for kernel & device protocols + "learn on"
If BIRD did not learn the route (i.e., it is not seen in 'show route'), then you could check logs for errors, or add 'debug all' to the kernel protocol.
Options import, export for device protocol is irrelevant.
Note that you would need export all also for BGP protocol.
-- Elen sila lumenn' omentielvo
Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
participants (4)
-
Eric Vyncke (evyncke) -
Ondrej Zajicek -
Pavel Odintsov -
Raphael Mazelier