change routing while exporting to kernel

Ondrej Zajicek santiago at crfreenet.org
Mon Nov 5 16:24:56 CET 2018


On Sat, Nov 03, 2018 at 09:51:33PM +0100, Michael Schwartzkopff wrote:
> hi,
> 
> 
> I want to export a route learned from BGP to the kernel. but I want to
> modify the route while exporting because I want to use a VTI instead of
> the next hop route.
> 
> 
> So instead of 192.168.0.0/24  via 10.0.0.1 I want to export
> 
> 192.168.0.0/24 dev vti0 to the kernel.
> 
> 
> Is this possible with bird? If yes, how can I acchieve this?

Hi

Attached patch (one for BIRD 1.6, one for BIRD 2.0) will allow
that by making route attribute ifname read/write. So it could
be done by

  ifname = "vti0";

in filters.

Compared to setting gateway it may be slower if there are plenty
of interfaces as the lookup is not cached.

-- 
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: add-ifname-v1.patch
Type: text/x-diff
Size: 1767 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20181105/6b07e8c6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-ifname-v2.patch
Type: text/x-diff
Size: 1775 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20181105/6b07e8c6/attachment-0001.bin>


More information about the Bird-users mailing list