From 869b70ed4d655c1c8df0798a1e5ecb3d4631a03f Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Thu, 5 Aug 2021 07:36:46 -0400 Subject: update network config --- config/router.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'config') diff --git a/config/router.nix b/config/router.nix index 50cdec3..8e73d8b 100644 --- a/config/router.nix +++ b/config/router.nix @@ -224,12 +224,13 @@ in { dhcp-range=vlan30,172.20.30.50,172.20.30.254,5m dhcp-option=net:vlan30,option:router,172.20.30.1 - dhcp-range=10.65.30.100,10.65.30.254,255.255.255.0,24h - dhcp-range=10.64.31.1,10.64.31.254,255.255.254.0,24h - dhcp-range=10.64.33.1,10.64.33.254,255.255.254.0,24h - dhcp-option=option:router,10.65.30.1 + dhcp-range=vlan100,172.20.100.50,172.20.100.254,5m + dhcp-option=net:vlan100,option:router,172.20.100.1 + + dhcp-range=vlan32,172.20.32.50,172.20.32.254,5m + dhcp-option=net:vlan32,option:router,172.20.32.1 + dhcp-option=option:dns-server,1.1.1.1,8.8.8.8,8.8.4.4 - dhcp-option=option:netmask,255.255.255.0 dhcp-range=::,constructor:${lan-dev}.100,slaac,off-link ''; @@ -307,7 +308,7 @@ in { }; networking.interfaces."${lan-dev}.100" = { ipv4.addresses = [{ - address = "10.65.30.1"; + address = "172.20.100.1"; prefixLength = 24; }]; useDHCP = false; @@ -321,7 +322,7 @@ in { }; networking.interfaces."${lan-dev}.32" = { ipv4.addresses = [{ - address = "10.64.32.1"; + address = "172.20.32.1"; prefixLength = 23; }]; useDHCP = false; -- cgit v1.2.3