Assign 64 IPv6 addresses to server, for future rotation
This commit is contained in:
parent
d5cdd426c0
commit
dcad5d0e51
1 changed files with 5 additions and 6 deletions
|
|
@ -4,15 +4,14 @@
|
|||
enable = true;
|
||||
networks."30-wan" = {
|
||||
matchConfig.Name = "enp1s0";
|
||||
networkConfig = {
|
||||
DHCP = "no";
|
||||
IPv6PrivacyExtensions = true;
|
||||
};
|
||||
networkConfig.DHCP = "no";
|
||||
|
||||
address = [
|
||||
"91.99.155.129/32"
|
||||
"2a01:4f8:c012:d202::1/64"
|
||||
];
|
||||
]
|
||||
# Assign 64 IPv6 addresses
|
||||
++ builtins.genList (i: "2a01:4f8:c012:d202::${builtins.toString (i + 1)}/64") 64;
|
||||
|
||||
routes = [
|
||||
{
|
||||
Gateway = "172.31.1.1";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue