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