Use systemd-networkd instead
This commit is contained in:
parent
691c03e79a
commit
354f6c454e
1 changed files with 9 additions and 26 deletions
|
@ -109,31 +109,14 @@
|
|||
|
||||
system.stateVersion = "21.11";
|
||||
|
||||
networking = {
|
||||
interfaces."enp0s3" = {
|
||||
ipv4.addresses = [{
|
||||
address = "138.201.155.128";
|
||||
prefixLength = 32;
|
||||
}];
|
||||
ipv4.routes = [{
|
||||
address = "0.0.0.0";
|
||||
prefixLength = 0;
|
||||
via = "172.31.1.1";
|
||||
}];
|
||||
ipv6.addresses = [{
|
||||
address = "2a01:4f8:1c17:d953:1658:15a2:2755:360e";
|
||||
prefixLength = 64;
|
||||
}];
|
||||
ipv6.routes = [{
|
||||
address = "::";
|
||||
prefixLength = 0;
|
||||
via = "fe80::1";
|
||||
}];
|
||||
};
|
||||
defaultGateway6 = {
|
||||
address = "fe80::1";
|
||||
interface = "enp0s3";
|
||||
};
|
||||
defaultGateway = "172.31.1.1";
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
networks."enp0s3".extraConfig = ''
|
||||
[Match]
|
||||
OriginalName = enp0s3
|
||||
[Network]
|
||||
Address = 2a01:4f8:1c17:d953:1658:15a2:2755:360e/64
|
||||
Gateway = fe80::1
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue