summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-06-16 19:28:26 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-06-16 19:28:26 +0200
commit42a0ebba1aa51c69fecf3f0c85a18257fcb871da (patch)
treeda3bea05a99bb5ff494a84bc1afd7491d7b5dbf4
parent9c09f2e7668b9828f2a9f4e8b81cae81f0ad9c10 (diff)
downloadnixos-42a0ebba1aa51c69fecf3f0c85a18257fcb871da.tar
nixos-42a0ebba1aa51c69fecf3f0c85a18257fcb871da.tar.gz
nixos-42a0ebba1aa51c69fecf3f0c85a18257fcb871da.tar.bz2
nixos-42a0ebba1aa51c69fecf3f0c85a18257fcb871da.tar.xz
nixos-42a0ebba1aa51c69fecf3f0c85a18257fcb871da.zip
proxy-ARP & dhcpd
-rw-r--r--bragi.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/bragi.nix b/bragi.nix
index 7e9ed966..e1a10fb4 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -161,4 +161,30 @@
161 ;; 161 ;;
162 esac 162 esac
163 ''; 163 '';
164
165 networking.interfaces = {
166 "wlp4s0" = {
167 proxyARP = true;
168 };
169 "enp1s0" = {
170 proxyARP = true;
171 useDHCP = false;
172 ipAddress = "10.141.4.1";
173 prefixLength = "24";
174 };
175 };
176
177 services.dhcpd = {
178 enable = true;
179 interfaces = "enp1s0";
180 extraConfig = ''
181 option subnet-mask 255.255.255.0;
182 option broadcast-address 10.141.1.1;
183 option domain-name-servers 10.141.1.1, 8.8.8.8, 8.8.4.4;
184 option domain-name "asgard.yggdrasil";
185 subnet 10.141.4.0 netmask 255.255.255.0 {
186 range 10.141.4.100 10.141.4.254;
187 }
188 '';
189 };
164} 190}