From 0469ca21da3e0e42fc4e7de1c2421826d89f6f1c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 16 Oct 2019 17:49:00 +0800 Subject: [PATCH] nixbld: get static IPs out of DHCP range, and give them DNS entries --- nixbld-etc-nixos/configuration.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index e81d252..e3e8683 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -106,11 +106,20 @@ in interface=${netifLan} interface=${netifWifi} bind-interfaces - dhcp-range=interface:${netifLan},192.168.1.10,192.168.1.254,24h + dhcp-range=interface:${netifLan},192.168.1.81,192.168.1.254,24h dhcp-range=interface:${netifWifi},192.168.12.10,192.168.12.254,24h enable-ra dhcp-range=interface:${netifLan},::,constructor:${netifLan},ra-names dhcp-range=interface:${netifWifi},::,constructor:${netifWifi},ra-only + + # Default IP addresses for ARTIQ boards + address=/thermostat/192.168.1.26 + address=/kc705/192.168.1.50 + address=/zc706/192.168.1.51 + address=/sayma/192.168.1.60 + address=/kasli/192.168.1.70 + # uTCA MCH from NAT + address=/tschernobyl/192.168.1.80 ''; };