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 {