swann: fix IP for en-ee interface

This commit is contained in:
Luke Granger-Brown 2023-08-13 21:38:47 +01:00
parent bcff697a85
commit eaa2538389

View file

@ -73,7 +73,7 @@ in {
en-ee = { en-ee = {
useDHCP = true; useDHCP = true;
ipv4.addresses = [ ipv4.addresses = [
{ address = "192.168.200.2"; prefixLength = 24; } { address = "10.42.0.2"; prefixLength = 24; }
]; ];
# Additional options configured in networkd. # Additional options configured in networkd.
}; };
@ -269,13 +269,14 @@ in {
}; };
} { } {
routingPolicyRuleConfig = { routingPolicyRuleConfig = {
# as does anything from 192.168.200.0/24. # as does anything from 10.42.0.0/24.
From = "192.168.200.0/24"; From = "10.42.0.0/24";
Table = routeTables.ee; Table = routeTables.ee;
Priority = 10031; Priority = 10031;
}; };
}]) // { }]) // {
linkConfig.RequiredForOnline = "no"; linkConfig.RequiredForOnline = "no";
networkConfig.Gateway = "10.42.0.1";
}; };
networks."40-en-gnet" = (physicalNetwork routeTables.gnet "0xcafe" [{ networks."40-en-gnet" = (physicalNetwork routeTables.gnet "0xcafe" [{
# Catch-all mop-up rule at the end. # Catch-all mop-up rule at the end.