run dhcp server on bordervm

this is for testing clients that have dhcp upstream
This commit is contained in:
Daniel Barlow 2024-05-08 23:03:32 +01:00
parent b4068da9fe
commit bd6ec5201f
1 changed files with 11 additions and 0 deletions

View File

@ -80,8 +80,19 @@ in {
};
};
services.openssh.enable = true;
services.dnsmasq = {
enable = true;
resolveLocalQueries = false;
settings = {
# domain-needed = true;
dhcp-range = [ "10.0.0.10,10.0.0.240" ];
interface = "eth1";
};
};
systemd.services.sshd.wantedBy = pkgs.lib.mkForce [ "multi-user.target" ];
virtualisation = {
qemu = {
networkingOptions = [];