simplify kea

This commit is contained in:
Vivian 2023-04-28 10:37:37 +02:00
parent f379f5bccb
commit 28009de2c5

View file

@ -76,52 +76,39 @@ in {
option-data = [
{
space = "dhcp4";
name = "subnet-mask";
code = 1;
data = "255.255.254.0";
}
{
space = "dhcp4";
name = "broadcast-address";
code = 28;
data = "10.42.43.255";
}
{
space = "dhcp4";
name = "routers";
code = 3;
data = "10.42.42.1";
}
{
space = "dhcp4";
name = "domain-name-servers";
code = 6;
data = "10.42.42.15; 10.42.42.16";
data = "10.42.42.15, 10.42.42.16";
}
{
space = "dhcp4";
name = "domain-name";
code = 15;
data = "${localDomain}";
}
{
space = "dhcp4";
name = "domain-search";
code = 119;
data = "${localDomain}";
}
];
host-reservation-identifiers = [ "hw-address" ];
subnet4 = [{
id = 1;
pools = [{ pool = "10.42.43.1 - 10.42.43.254"; }];
subnet = "10.42.42.0/23";
reservations = map hostToKea hosts;
}];
host-reservation-identifiers = [ "hw-address" ];
reservation-mode = "global";
reservations = map hostToKea hosts;
};
};
};