Kea fails to listen alongside dnsmasq, but doesn't report a failure
Using Gentoo with kernel 6.1.41 and net-misc/kea-2.2.0-1::gentoo USE="filecaps openssl samples -debug -doc -mysql -postgres -shell -test" PYTHON_SINGLE_TARGET="python3_11 -python3_10" 0 KiB
Kea starts without an error:
kea-dhcp4 -c /etc/kea/kea-dhcp4.conf -d
2023-08-08 10:44:58.401 DEBUG [kea-dhcp4.dhcp4/8231.140323795412096] DHCP4_START_INFO pid: 8231, server port: 67, client port: 0, verbose: yes
2023-08-08 10:44:58.402 INFO [kea-dhcp4.dhcp4/8231.140323795412096] DHCP4_STARTING Kea DHCPv4 server version 2.2.0-gentoo (stable) starting
2023-08-08 10:44:58.402 DEBUG [kea-dhcp4.dhcp4/8231.140323795412096] DHCP4_OPEN_SOCKET opening service sockets on port 67
2023-08-08 10:44:58.402 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command list-commands registered
2023-08-08 10:44:58.402 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command build-report registered
2023-08-08 10:44:58.402 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command config-backend-pull registered
2023-08-08 10:44:58.402 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command config-get registered
2023-08-08 10:44:58.402 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command config-reload registered
2023-08-08 10:44:58.402 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command config-set registered
2023-08-08 10:44:58.402 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command config-test registered
2023-08-08 10:44:58.402 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command config-write registered
2023-08-08 10:44:58.402 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command dhcp-enable registered
2023-08-08 10:44:58.402 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command dhcp-disable registered
2023-08-08 10:44:58.402 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command libreload registered
2023-08-08 10:44:58.402 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command leases-reclaim registered
2023-08-08 10:44:58.402 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command server-tag-get registered
2023-08-08 10:44:58.402 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command shutdown registered
2023-08-08 10:44:58.403 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command status-get registered
2023-08-08 10:44:58.403 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command version-get registered
2023-08-08 10:44:58.403 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command statistic-get registered
2023-08-08 10:44:58.403 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command statistic-reset registered
2023-08-08 10:44:58.403 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command statistic-remove registered
2023-08-08 10:44:58.403 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command statistic-get-all registered
2023-08-08 10:44:58.403 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command statistic-reset-all registered
2023-08-08 10:44:58.403 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command statistic-remove-all registered
2023-08-08 10:44:58.403 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command statistic-sample-age-set registered
2023-08-08 10:44:58.403 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command statistic-sample-age-set-all registered
2023-08-08 10:44:58.403 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command statistic-sample-count-set registered
2023-08-08 10:44:58.403 DEBUG [kea-dhcp4.commands/8231.140323795412096] COMMAND_REGISTERED Command statistic-sample-count-set-all registered
but does not actually listen on any ports. I think it does this when dnsmasq is listening on 0.0.0.0, but I defined both interfaces for it to listen on with:
"interfaces": [ "fib.lan/10.10.10.1", "ethernet2/192.168.2.1" ]
Stopping dnsmasq (which was started by libvirtd) resolves this, but I was able to run ISC this way.