static leases for rotuer

doc-do-over
Daniel Barlow 2023-09-04 23:07:13 +01:00
parent 899f096346
commit 91e957ced7
2 changed files with 10 additions and 0 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ result-*
*.qcow2
_build
*-secrets.nix
examples/static-leases.nix

View File

@ -97,8 +97,17 @@ in rec {
inherit interface;
ranges = [
"10.8.0.10,10.8.0.240"
# ra-stateless: sends router advertisements with the O and A
# bits set, and provides a stateless DHCP service. The client
# will use a SLAAC address, and use DHCP for other
# configuration information.
"::,constructor:$(output ${interface} ifname),ra-stateless"
];
# You can add static addresses for the DHCP server here. I'm
# not putting my actual MAC addresses in a public git repo ...
hosts = { } // lib.optionalAttrs (builtins.pathExists ./static-leases.nix) (import ./static-leases.nix);
domain = "fake.liminix.org";
};