Am 05.11.18 um 16:24 schrieb Ondrej Zajicek:
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.
Cool! thanks. I will try to patch and to test. Mit freundlichen Grüßen, -- [*] sys4 AG https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein