kea: Configure Unifi address DHCP option

This commit is contained in:
Erwin Boskma 2024-06-17 10:41:36 +02:00
parent f5f86d1d22
commit 1c4b501c33
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

@ -15,41 +15,41 @@
socket-name = "/run/kea/kea-dhcp4.socket";
};
# option-def = [
# {
# space = "ubnt";
# name = "unifi-address";
# code = 1;
# type = "ipv4-address";
# }
# ];
option-def = [
{
space = "ubnt";
name = "unifi-address";
code = 1;
type = "ipv4-address";
}
];
# client-classes = [
# {
# name = "ubnt";
# test = "substring(option[60].hex,0,4) == 'ubnt'";
# option-data = [
# {
# space = "ubnt";
# name = "vendor-class-identifier";
# code = 60;
# data = "ubnt";
# }
# {
# name = "vendor-encapsulated-options";
# code = 43;
# }
# ];
# option-def = [
# {
# name = "vendor-encapsulated-options";
# code = 43;
# type = "empty";
# encapsulate = "ubnt";
# }
# ];
# }
# ];
client-classes = [
{
name = "ubnt";
test = "substring(option[60].hex,0,4) == 'ubnt'";
option-data = [
{
space = "dhcp4";
name = "vendor-class-identifier";
code = 60;
data = "ubnt";
}
{
name = "vendor-encapsulated-options";
code = 43;
}
];
option-def = [
{
name = "vendor-encapsulated-options";
code = 43;
type = "empty";
encapsulate = "ubnt";
}
];
}
];
interfaces-config = {
interfaces = [ "eth0" ];
@ -75,12 +75,12 @@
name = "domain-name-servers";
data = "10.0.0.206";
}
# {
# space = "ubnt";
# name = "unifi-address";
# code = 1;
# data = "10.0.0.207";
# }
{
space = "ubnt";
name = "unifi-address";
code = 1;
data = "10.0.0.207";
}
];
reservations = [