From d21b7337948ce6f4c7bf78cdaaebf52116a63b4e Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 30 Apr 2022 16:48:01 +0100 Subject: [PATCH] ops/nixos: add bgp.tools route collector --- ops/nixos/etheroute-lon01/default.nix | 18 ++++++++++++++++++ ops/nixos/lib/blade-router.nix | 21 +++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/ops/nixos/etheroute-lon01/default.nix b/ops/nixos/etheroute-lon01/default.nix index 01c24c912e..87039f141e 100644 --- a/ops/nixos/etheroute-lon01/default.nix +++ b/ops/nixos/etheroute-lon01/default.nix @@ -214,6 +214,24 @@ in { }]; }; }; + bgptoolscollector = { + local = local // { + v4 = "83.97.19.68"; + v6 = "2a07:242:800:64::68"; + }; + remote = { + asn = 212232; + export_community = 5000; + is_route_collector = true; + routers = [{ + v4 = "185.230.223.39"; + v6 = "2a0c:2f07:9459::b3"; + multihop = 64; + }]; + prefix_limit.v4 = 0; + prefix_limit.v6 = 0; + }; + }; }; }; }; diff --git a/ops/nixos/lib/blade-router.nix b/ops/nixos/lib/blade-router.nix index ba78a300c4..ab018b0e85 100644 --- a/ops/nixos/lib/blade-router.nix +++ b/ops/nixos/lib/blade-router.nix @@ -149,6 +149,26 @@ in }]; }; }; + peering.bgptoolscollector = { + local = { + asn = 205479; + v4 = config.my.blade-router.addresses.linknet.v4.local; + v6 = config.my.blade-router.addresses.linknet.v6.local; + }; + remote = { + asn = 212232; + export_community = 5000; + routers = [{ + enabled = cfg.linx.enable; + v4 = "185.230.223.42"; + v6 = "2a0c:2f07:9459::b1"; + multihop = 64; + }]; + prefix_limit.v4 = 0; + prefix_limit.v6 = 0; + is_route_collector = true; + }; + }; peering.linxcollector = linx // { remote = { asn = 5459; @@ -160,6 +180,7 @@ in }]; prefix_limit.v4 = 0; prefix_limit.v6 = 0; + is_route_collector = true; }; }; peering.linx = linx // {