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@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."