From eaa2538389455f8da78c4f1ffd94db931323ea55 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 13 Aug 2023 21:38:47 +0100 Subject: [PATCH] swann: fix IP for en-ee interface --- ops/nixos/swann/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ops/nixos/swann/default.nix b/ops/nixos/swann/default.nix index fd9b9ebd78..b916bd1e97 100644 --- a/ops/nixos/swann/default.nix +++ b/ops/nixos/swann/default.nix @@ -73,7 +73,7 @@ in { en-ee = { useDHCP = true; ipv4.addresses = [ - { address = "192.168.200.2"; prefixLength = 24; } + { address = "10.42.0.2"; prefixLength = 24; } ]; # Additional options configured in networkd. }; @@ -269,13 +269,14 @@ in { }; } { routingPolicyRuleConfig = { - # as does anything from 192.168.200.0/24. - From = "192.168.200.0/24"; + # as does anything from 10.42.0.0/24. + From = "10.42.0.0/24"; Table = routeTables.ee; Priority = 10031; }; }]) // { linkConfig.RequiredForOnline = "no"; + networkConfig.Gateway = "10.42.0.1"; }; networks."40-en-gnet" = (physicalNetwork routeTables.gnet "0xcafe" [{ # Catch-all mop-up rule at the end.