Injecting route into bird/ospf

Ondrej Zajicek santiago at crfreenet.org
Fri Jul 28 16:07:01 CEST 2017


On Fri, Jul 28, 2017 at 11:27:23AM +0000, ico wrote:
> Hello,
> 
> Is there a way to do it without setting IPs anywhere? Maybe set some custom
> local routing table for this and tell bird to announce routes found there?
> 
>     echo "25 mytable" >> /etc/iproute2/rt_tables
>     ip route show table mytable  # empty
>     ip route add 10.0.0.1/32 dev lo table mytable
>     ip route show table mytable  # shows 10.0.0.1 on loopback
>     # and now also bird picks up 10.0.0.1 and announces it
> 
> What is the best way to do it "the most dynamic way"?

Hi

You could add 'learn' option to kernel protocol and then learn routes
from that table. These could be exported to the OSPF protocol as
external routes.

-- 
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/20170728/523cddf5/attachment.asc>


More information about the Bird-users mailing list