summaryrefslogtreecommitdiff
path: root/hosts/vidhar/network/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/vidhar/network/default.nix')
-rw-r--r--hosts/vidhar/network/default.nix18
1 files changed, 18 insertions, 0 deletions
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 @@
21 { address = "10.141.1.1"; prefixLength = 24; } 21 { address = "10.141.1.1"; prefixLength = 24; }
22 ]; 22 ];
23 }; 23 };
24 interfaces."dmz01" = {
25 ipv4.addresses = [
26 { address = "10.141.2.1"; prefixLength = 24; }
27 ];
28 };
24 29
25 vlans = { 30 vlans = {
26 mgmt = { 31 mgmt = {
@@ -31,6 +36,10 @@
31 id = 3; 36 id = 3;
32 interface = "eno2"; 37 interface = "eno2";
33 }; 38 };
39 dmz01 = {
40 id = 4;
41 interface = "eno2";
42 };
34 }; 43 };
35 44
36 firewall.enable = false; 45 firewall.enable = false;
@@ -58,6 +67,15 @@
58 67
59 subnet 10.141.1.0 netmask 255.255.255.0 { 68 subnet 10.141.1.0 netmask 255.255.255.0 {
60 range 10.141.1.128 10.141.1.254; 69 range 10.141.1.128 10.141.1.254;
70 option domain-name-servers 10.141.1.1;
71 option broadcast-address 10.141.1.255;
72 }
73
74 subnet 10.141.2.0 netmask 255.255.255.0 {
75 range 10.141.2.128 10.141.2.254;
76 option domain-name-servers 10.141.2.1;
77 option broadcast-address 10.141.2.255;
78 option routers 10.141.2.1;
61 } 79 }
62 ''; 80 '';
63 machines = [ 81 machines = [