hosts/hydra-2: Migrate to systemd-network
This commit is contained in:
parent
f96326de36
commit
7141a7fadd
@ -19,10 +19,20 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
networking.interfaces.ens18.ipv6.addresses = [ { address = "2001:638:904:ffc1::100"; prefixLength = 64; } ];
|
systemd.network.enable = true;
|
||||||
networking.interfaces.ens18.ipv4.addresses = [ { address = "141.24.50.112"; prefixLength = 24; } ];
|
|
||||||
networking.defaultGateway6 = { address = "2001:638:904:ffc1::1"; interface = "ens18"; };
|
systemd.network.networks."10-wan" = {
|
||||||
networking.defaultGateway = { address = "141.24.50.1"; interface = "ens18"; };
|
matchConfig.Name = "ens18";
|
||||||
|
address = [
|
||||||
|
"2001:638:904:ffc1::100/64"
|
||||||
|
"141.24.50.112/24"
|
||||||
|
];
|
||||||
|
routes = [
|
||||||
|
{ Gateway = "2001:638:904:ffc1::1"; }
|
||||||
|
{ Gateway = "141.24.50.1"; }
|
||||||
|
];
|
||||||
|
linkConfig.RequiredForOnline = "routable";
|
||||||
|
};
|
||||||
|
|
||||||
clerie.monitoring = {
|
clerie.monitoring = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user