From 6b06713a087aa2a7db15b1ae2533efa01a246c93 Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Fri, 1 Dec 2023 00:26:58 +0100 Subject: [PATCH] add router to dhcp server --- hosts/fw.cloonar.com/modules/dhcp4.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/hosts/fw.cloonar.com/modules/dhcp4.nix b/hosts/fw.cloonar.com/modules/dhcp4.nix index 81abdf0..990b88d 100644 --- a/hosts/fw.cloonar.com/modules/dhcp4.nix +++ b/hosts/fw.cloonar.com/modules/dhcp4.nix @@ -28,6 +28,10 @@ subnet = "10.42.96.0/24"; interface = "lan"; option-data = [ + { + name = "routers"; + data = "10.42.96.1"; + } { name = "domain-name"; data = "cloonar.com"; @@ -60,6 +64,10 @@ subnet = "10.42.97.0/24"; interface = "server"; option-data = [ + { + name = "routers"; + data = "10.42.97.1"; + } { name = "domain-name"; data = "cloonar.com"; @@ -87,6 +95,10 @@ subnet = "10.42.99.0/24"; interface = "multimedia"; option-data = [ + { + name = "routers"; + data = "10.42.99.1"; + } { name = "domain-name"; data = "cloonar.multimedia"; @@ -101,6 +113,12 @@ ]; subnet = "10.42.100.0/24"; interface = "guest"; + option-data = [ + { + name = "routers"; + data = "10.42.100.1"; + } + ]; } { pools = [ @@ -111,6 +129,10 @@ subnet = "10.42.254.0/24"; interface = "smart"; option-data = [ + { + name = "routers"; + data = "10.42.254.1"; + } { name = "domain-name"; data = "cloonar.smart";