Unexpected behavior of static routes

Ondrej Zajicek santiago at crfreenet.org
Wed Aug 9 23:46:15 CEST 2017


On Fri, Aug 04, 2017 at 02:41:32PM -0400, Damien Clabaut wrote:
> Hello everyone,
> 
> I am reopening the subject as I am facing the same issue that was described
> here.
> 
> I add routes in Linux:
> 
> interface bond0.2 has no ip address assigned, by design.
> 
> # ip route add 10.0.2.0/24 dev bond0.2  scope link
> 
> # ip r a 192.168.0.1 via 10.0.2.2 dev bond0.2
> 
> How can I import the second route to Bird, to be able to announce it via BGP
> ?

I think simplest way would be to add 'onlink' flag to the route for
192.168.0.1 . That allows it to be imported regardless of its next-hop.

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at 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."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20170809/947883f4/attachment.asc>


More information about the Bird-users mailing list