From c89e822a5d558b9f9bb9d1ac2a1dd76f3e64c595 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 8 Jan 2022 00:24:18 +0100 Subject: vidhar: dmz01 --- hosts/vidhar/network/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'hosts/vidhar/network/default.nix') diff --git a/hosts/vidhar/network/default.nix b/hosts/vidhar/network/default.nix index 62539239..81dac652 100644 --- a/hosts/vidhar/network/default.nix +++ b/hosts/vidhar/network/default.nix @@ -21,6 +21,11 @@ { address = "10.141.1.1"; prefixLength = 24; } ]; }; + interfaces."dmz01" = { + ipv4.addresses = [ + { address = "10.141.2.1"; prefixLength = 24; } + ]; + }; vlans = { mgmt = { @@ -31,6 +36,10 @@ id = 3; interface = "eno2"; }; + dmz01 = { + id = 4; + interface = "eno2"; + }; }; firewall.enable = false; @@ -58,6 +67,15 @@ subnet 10.141.1.0 netmask 255.255.255.0 { range 10.141.1.128 10.141.1.254; + option domain-name-servers 10.141.1.1; + option broadcast-address 10.141.1.255; + } + + subnet 10.141.2.0 netmask 255.255.255.0 { + range 10.141.2.128 10.141.2.254; + option domain-name-servers 10.141.2.1; + option broadcast-address 10.141.2.255; + option routers 10.141.2.1; } ''; machines = [ -- cgit v1.2.3