1
24.1 Legacy Series / [SOLVED] KEA dhcpd not serving all subnets after reboot
« on: February 24, 2024, 08:31:34 pm »
I am testing KEA dhcpd on OPNsense 24.1.2_1-amd64.
I have configured five subnets (LAN + four VLANs) for which KEA is the dhcp server:
192.168.22.0/24 (LAN)
192.168.202.0/24 (VLAN 2)
192.168.205.0/24 (VLAN 5)
192.168.210.0/24 (VLAN 10)
192.168.220.0/24 (VLAN 20)
Everything is fine until I reboot the system. After reboot I see the following warning in the KEA log file:
WARN [kea-dhcp4.dhcpsrv.0x835bc5000] DHCPSRV_OPEN_SOCKET_FAIL failed to open socket: the interface em0 is not running
It seems like KEA is starting before the em0 interface (which is the interface for the LAN and VLANs).
However, KEA seems to start and servers fine on the VLAN-intefaces but does not provide DHCP leases for the LAN interface. Once I restart the KEA service, it starts serving on both LAN interface and VLANs.
Again, when I reboot the system, the same issue occurs until I manually restart KEA.
Is this a known issue and is there any workaround for the issue? Is there any information I can provide for inspecting this further?
I have configured five subnets (LAN + four VLANs) for which KEA is the dhcp server:
192.168.22.0/24 (LAN)
192.168.202.0/24 (VLAN 2)
192.168.205.0/24 (VLAN 5)
192.168.210.0/24 (VLAN 10)
192.168.220.0/24 (VLAN 20)
Everything is fine until I reboot the system. After reboot I see the following warning in the KEA log file:
WARN [kea-dhcp4.dhcpsrv.0x835bc5000] DHCPSRV_OPEN_SOCKET_FAIL failed to open socket: the interface em0 is not running
It seems like KEA is starting before the em0 interface (which is the interface for the LAN and VLANs).
However, KEA seems to start and servers fine on the VLAN-intefaces but does not provide DHCP leases for the LAN interface. Once I restart the KEA service, it starts serving on both LAN interface and VLANs.
Again, when I reboot the system, the same issue occurs until I manually restart KEA.
Is this a known issue and is there any workaround for the issue? Is there any information I can provide for inspecting this further?