From 791c1a8d9003d221218ccc46cbfb995ff9df3fad Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 3 Apr 2022 13:39:11 +0200 Subject: [PATCH] Move DHCP server for gastnetz to carbon too --- hosts/carbon/configuration.nix | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/hosts/carbon/configuration.nix b/hosts/carbon/configuration.nix index 9829eb3..505fca9 100644 --- a/hosts/carbon/configuration.nix +++ b/hosts/carbon/configuration.nix @@ -98,7 +98,7 @@ AdvSendAdvert on; prefix 2001:4cd8:100:1313::/64 {}; route ::/0 {}; - RDNSS 2620:fe::fe {}; # Quad 9 + RDNSS 2620:fe::fe 2620:fe::9 {}; # Quad 9 }; ''; @@ -106,7 +106,7 @@ enable = true; settings = { interfaces-config = { - interfaces = [ "enp1s0.201" "enp1s0.204" ]; + interfaces = [ "enp1s0.201" "enp1s0.202" "enp1s0.204" ]; }; lease-database = { name = "/var/lib/kea/dhcp4.leases"; @@ -177,6 +177,26 @@ } ]; } + # Gastnetz + { + id = 202; + subnet = "192.168.32.0/24"; + pools = [ + { + pool = "192.168.32.100 - 192.168.32.240"; + } + ]; + option-data = [ + { + name = "routers"; + data = "192.168.32.1"; + } + { + name = "domain-name-servers"; + data = "9.9.9.9,149.112.112.112"; # Quad 9 + } + ]; + } # VoIP { id = 204;