From 0767df085c325fe5d91876941fdc1160b30bb26d Mon Sep 17 00:00:00 2001 From: clerie Date: Fri, 11 Dec 2020 10:45:46 +0100 Subject: [PATCH] Add second ildix route server --- hosts/dn42-il-gw5/configuration.nix | 45 +++++++++++++++++------------ 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/hosts/dn42-il-gw5/configuration.nix b/hosts/dn42-il-gw5/configuration.nix index c74235a..d9c3d25 100644 --- a/hosts/dn42-il-gw5/configuration.nix +++ b/hosts/dn42-il-gw5/configuration.nix @@ -131,25 +131,32 @@ }; } - protocol bgp peer_ildix { - local as 4242422574; - graceful restart on; - neighbor fd81:edb3:71d8:ffff::13 as 4242422953; - source address fd81:edb3:71d8:ffff:2574::5; - ipv6 { - table bgp6; - igp table ospf6; - next hop self; - import keep filtered; - import filter { - if net ~ [fd00::/8{8,64}] then accept; - reject; - }; - export filter { - if net ~ [fd00::/8{8,64}] then accept; - reject; - }; - }; + template bgp ildix { + local as 4242422574; + graceful restart on; + source address fd81:edb3:71d8:ffff:2574::5; + ipv6 { + table bgp6; + igp table ospf6; + next hop self; + import keep filtered; + import filter { + if net ~ [fd00::/8{8,64}] then accept; + reject; + }; + export filter { + if net ~ [fd00::/8{8,64}] then accept; + reject; + }; + }; + } + + protocol bgp peer_ildix_clerie from ildix { + neighbor fd81:edb3:71d8:ffff::13 as 4242422953; + } + + protocol bgp peer_ildix_nex from ildix { + neighbor fd81:edb3:71d8:ffff::14 as 4242422953; } protocol device {