diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2021-08-05 07:30:21 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2021-08-05 07:30:21 -0400 |
commit | 2b129ce38d0649ab69dc9398d2aeddd4a125bb37 (patch) | |
tree | b0e81f02402c2e2641945be9cdebddd2c6592468 /config | |
parent | bac0d17e64dcada96b6e52d692f7765715d58bdf (diff) |
router config
Diffstat (limited to 'config')
-rw-r--r-- | config/router.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/config/router.nix b/config/router.nix index 653188a..ede29d6 100644 --- a/config/router.nix +++ b/config/router.nix @@ -218,8 +218,12 @@ in { enable = true; servers = [ "1.1.1.1" "8.8.8.8" "8.8.4.4" ]; extraConfig = '' - port=0 + port=2053 dhcp-authoritative + + 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 @@ -310,8 +314,8 @@ in { }; networking.interfaces."${lan-dev}.30" = { ipv4.addresses = [{ - address = "10.64.30.1"; - prefixLength = 23; + address = "172.20.30.1"; + prefixLength = 24; }]; useDHCP = false; }; |