[Kea-users] Problem with assigning static address
Alexander V. Nikolaev
avnick at gmail.com
Tue Nov 4 16:39:39 UTC 2025
Hello!
I have a setup of dhcpd v4, with static IP assigned to my testbed laptop,
and I have following problem: my laptop with 80% probability gets his own
address, but sometimes gets random IP from dynamic pool. I tried to
restrict reservation by hw-address only, and disable match-client-id, but
it didn't work. (client use systemd-networkd as dhcp client, cycling nixos
install usb flash and installed system -- I debug customized installer
scripts, so reboot quite often)
So my "carbon" host gets 172.16.228.6 normally, but on the next reboot
could get 172.16.228.130, which is weird.
Do you folks have an idea how to troubleshoot this?
I have following configuration of KEA v3.0.1
(slightly censored, I strip unrelated host reservations)
{
"Dhcp4": {
"host-reservation-identifiers": [
"hw-address"
],
"interfaces-config": {
"interfaces": [
"enp3s0",
"wifi1"
]
},
"lease-database": {
"name": "/var/lib/kea/dhcp4.leases",
"persist": true,
"type": "memfile"
},
"loggers": [
{
"debuglevel": 40,
"name": "kea-dhcp4",
"output_options": [
{
"output": "stderr"
}
],
"severity": "DEBUG"
}
],
"match-client-id": false,
"rebind-timer": 2000,
"renew-timer": 1000,
"subnet4": [
{
"authoritative": true,
"id": 228,
"option-data": [
{
"data": "172.16.228.1",
"name": "domain-name-servers"
},
{
"data": "home",
"name": "domain-name"
},
{
"data": "172.16.228.1",
"name": "routers"
}
],
"pools": [
{
"pool": "172.16.228.129 - 172.16.228.254"
}
],
"reservations": [
{
"hostname": "printer",
"hw-address": "70:5a:0f:13:90:d2",
"ip-address": "172.16.228.10"
},
{
"hostname": "carbon",
"hw-address": "00:e0:4d:78:97:ee",
"ip-address": "172.16.228.6"
}
],
"subnet": "172.16.228.0/24"
},
{
"id": 229,
"option-data": [
{
"data": "172.16.229.1",
"name": "routers"
},
{
"data": "home",
"name": "domain-name"
},
{
"data": "172.16.229.1",
"name": "domain-name-servers"
}
],
"pools": [
{
"pool": "172.16.229.129 - 172.16.229.254"
}
],
"subnet": "172.16.229.0/24"
}
],
"valid-lifetime": 4000
}
}
Many thanks,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20251104/4c265179/attachment.htm>
More information about the Kea-users
mailing list