hosts/porter: Migrate to systemd-networkd
This commit is contained in:
parent
87466f0ac9
commit
e4dc3bdc1f
@ -11,11 +11,20 @@
|
||||
boot.loader.grub.device = "/dev/sda";
|
||||
|
||||
networking.useDHCP = false;
|
||||
# Network
|
||||
networking.interfaces.ens3.ipv4.addresses = [ { address = "5.45.100.191"; prefixLength = 22; } ];
|
||||
networking.interfaces.ens3.ipv6.addresses = [ { address = "2a03:4000:6:48d::1"; prefixLength = 64; } ];
|
||||
networking.defaultGateway = { address = "5.45.100.1"; interface = "ens3"; };
|
||||
networking.defaultGateway6 = { address = "fe80::1"; interface = "ens3"; };
|
||||
systemd.network.enable = true;
|
||||
systemd.network.networks."10-wan" = {
|
||||
matchConfig.Name = "ens3";
|
||||
address = [
|
||||
"2a03:4000:6:48d::1/64"
|
||||
"5.45.100.191/22"
|
||||
];
|
||||
routes = [
|
||||
{ Gateway = "fe80::1"; }
|
||||
{ Gateway = "5.45.100.1"; }
|
||||
];
|
||||
linkConfig.RequiredForOnline = "routable";
|
||||
};
|
||||
|
||||
networking.nameservers = [ "46.38.255.230" "46.38.252.230" ];
|
||||
|
||||
clerie.nginx-port-forward = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user