<div dir="ltr">Hi Darren,<div>That is where I get doubts I see only one lease from that 4.0.0.0 subnet when I execute this command <br>/usr/bin/echo '{"command":"lease4-get-all"}' | /usr/bin/socat - UNIX:/tmp/kea4-ctrl-socket and that is also the day before yesterday's one where it worked fine.</div><div>And we have around 150+ Ip's still available from that subnet</div><div><br></div><div>Thanks Kraishak</div><div><br></div><div><br></div><div> <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 20, 2023 at 11:47 PM Darren Ankney <<a href="mailto:darren.ankney@gmail.com">darren.ankney@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Kraishak,<br>
<br>
I found an example transaction (0x67937012) showing a failure (logs<br>
below). It looks like it couldn't find a free address in the subnet.<br>
Is your subnet full?<br>
<br>
2023-07-20 12:53:20.793 DEBUG [kea-dhcp4.packets/7850.140433344689920]<br>
DHCP4_PACKET_RECEIVED [hwtype=1 11:3f:ff:00:00:05],<br>
cid=[01:11:3f:ff:00:00:05], tid=0x67937012: DHCPDISCOVER (type 1)<br>
received from 4.0.0.1 to 192.168.0.125 on interface eth0<br>
<br>
2023-07-20 12:53:20.793 DEBUG [kea-dhcp4.packets/7850.140433344689920]<br>
DHCP4_QUERY_DATA [hwtype=1 11:3f:ff:00:00:05],<br>
cid=[01:11:3f:ff:00:00:05], tid=0x67937012, packet details:<br>
local_address=<a href="http://192.168.0.125:67" rel="noreferrer" target="_blank">192.168.0.125:67</a>, remote_address=<a href="http://4.0.0.1:67" rel="noreferrer" target="_blank">4.0.0.1:67</a>,<br>
msg_type=DHCPDISCOVER (1), transid=0x67937012,<br>
<br>
2023-07-20 12:53:20.793 DEBUG [kea-dhcp4.packets/7850.140433344689920]<br>
DHCP4_SUBNET_SELECTED [hwtype=1 11:3f:ff:00:00:05],<br>
cid=[01:11:3f:ff:00:00:05], tid=0x67937012: the subnet with ID 786966<br>
was selected for client assignments<br>
<br>
2023-07-20 12:53:20.793 DEBUG [kea-dhcp4.packets/7850.140433344689920]<br>
DHCP4_SUBNET_DATA [hwtype=1 11:3f:ff:00:00:05],<br>
cid=[01:11:3f:ff:00:00:05], tid=0x67937012: the selected subnet<br>
details: <a href="http://4.0.0.0/16" rel="noreferrer" target="_blank">4.0.0.0/16</a><br>
<br>
2023-07-20 12:53:20.793 DEBUG [kea-dhcp4.dhcp4/7850.140433344689920]<br>
DHCP4_CLASS_ASSIGNED [hwtype=1 11:3f:ff:00:00:05],<br>
cid=[01:11:3f:ff:00:00:05], tid=0x67937012: client packet has been<br>
assigned to the following class(es): UNKNOWN<br>
<br>
2023-07-20 12:53:20.793 DEBUG [kea-dhcp4.dhcp4/7850.140433344689920]<br>
DHCP4_CLASS_ASSIGNED [hwtype=1 11:3f:ff:00:00:05],<br>
cid=[01:11:3f:ff:00:00:05], tid=0x67937012: client packet has been<br>
assigned to the following class(es): ALL, allow-client, UNKNOWN<br>
<br>
2023-07-20 12:53:20.793 DEBUG [kea-dhcp4.ddns/7850.140433344689920]<br>
DHCP4_CLIENT_HOSTNAME_PROCESS [hwtype=1 11:3f:ff:00:00:05],<br>
cid=[01:11:3f:ff:00:00:05], tid=0x67937012: processing client's<br>
Hostname option<br>
<br>
2023-07-20 12:53:20.793 DEBUG [kea-dhcp4.ddns/7850.140433344689920]<br>
DHCP4_CLIENT_HOSTNAME_DATA [hwtype=1 11:3f:ff:00:00:05],<br>
cid=[01:11:3f:ff:00:00:05], tid=0x67937012: client sent Hostname<br>
option: dhcp-client-000005<br>
<br>
2023-07-20 12:53:20.793 DEBUG [kea-dhcp4.ddns/7850.140433344689920]<br>
DHCP4_CLIENT_HOSTNAME_DATA [hwtype=1 11:3f:ff:00:00:05],<br>
cid=[01:11:3f:ff:00:00:05], tid=0x67937012: client sent Hostname<br>
option: dhcp-client-000005<br>
<br>
2023-07-20 12:53:20.793 DEBUG [kea-dhcp4.ddns/7850.140433344689920]<br>
DHCP4_RESPONSE_HOSTNAME_DATA [hwtype=1 11:3f:ff:00:00:05],<br>
cid=[01:11:3f:ff:00:00:05], tid=0x67937012: including Hostname option<br>
in the server's response: dhcp-client-000005<br>
<br>
2023-07-20 12:53:20.793 DEBUG<br>
[kea-dhcp4.alloc-engine/7850.140433344689920]<br>
ALLOC_ENGINE_V4_OFFER_NEW_LEASE allocation engine will try to offer<br>
new lease to the client [hwtype=1 11:3f:ff:00:00:05],<br>
cid=[01:11:3f:ff:00:00:05], tid=0x67937012<br>
<br>
2023-07-20 12:53:20.850 WARN<br>
[kea-dhcp4.alloc-engine/7850.140433344689920]<br>
ALLOC_ENGINE_V4_ALLOC_FAIL_SUBNET [hwtype=1 11:3f:ff:00:00:05],<br>
cid=[01:11:3f:ff:00:00:05], tid=0x67937012: failed to allocate an IPv4<br>
lease in the subnet <a href="http://4.0.0.0/16" rel="noreferrer" target="_blank">4.0.0.0/16</a>, subnet-id 786966, shared network<br>
(none)<br>
<br>
2023-07-20 12:53:20.850 WARN<br>
[kea-dhcp4.alloc-engine/7850.140433344689920]<br>
ALLOC_ENGINE_V4_ALLOC_FAIL [hwtype=1 11:3f:ff:00:00:05],<br>
cid=[01:11:3f:ff:00:00:05], tid=0x67937012: failed to allocate an IPv4<br>
address after 244 attempt(s)<br>
<br>
2023-07-20 12:53:20.850 WARN<br>
[kea-dhcp4.alloc-engine/7850.140433344689920]<br>
ALLOC_ENGINE_V4_ALLOC_FAIL_CLASSES [hwtype=1 11:3f:ff:00:00:05],<br>
cid=[01:11:3f:ff:00:00:05], tid=0x67937012: Failed to allocate an IPv4<br>
address for client with classes: ALL, allow-client, UNKNOWN<br>
<br>
2023-07-20 12:53:20.850 DEBUG<br>
[kea-dhcp4.bad-packets/7850.140433344689920] DHCP4_PACKET_NAK_0003<br>
[hwtype=1 11:3f:ff:00:00:05], cid=[01:11:3f:ff:00:00:05],<br>
tid=0x67937012: failed to advertise a lease, client sent ciaddr<br>
0.0.0.0, requested-ip-address (no address)<br>
<br>
Thank you,<br>
<br>
Darren Ankney<br>
<br>
On Thu, Jul 20, 2023 at 11:31 AM Kraishak Mahtha <<a href="mailto:kraishak.edu@gmail.com" target="_blank">kraishak.edu@gmail.com</a>> wrote:<br>
><br>
> Hi All,<br>
><br>
> I have two subnets <a href="http://3.4.0.0/16" rel="noreferrer" target="_blank">3.4.0.0/16</a> and <a href="http://4.0.0.0/16" rel="noreferrer" target="_blank">4.0.0.0/16</a> configured on the kea DHCP standalone appliance, It used to work fine able to get leases from both subnets but today, I am not able to get the leases from 4.0.0.0 subnet (3.4.0.0 is working fine and both have same options and that too basic router and lease time...)<br>
> I see the discover packet is being sent to the DHCP appliance but it is not sending any offer, I tried checking the logs I see the server is being tried for different IPs like :<br>
><br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.hosts/7850.140433336297216] HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS4 get one host with reservation for subnet id 786966 and IPv4 address 4.0.0.2<br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.hosts/7850.140433336297216] HOSTS_CFG_GET_ALL_ADDRESS4 get all hosts with reservations for IPv4 address 4.0.0.2<br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.hosts/7850.140433336297216] HOSTS_CFG_GET_ALL_ADDRESS4_COUNT using address 4.0.0.2, found 0 host(s)<br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.hosts/7850.140433336297216] HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS4_NULL host not found using subnet id 786966 and address 4.0.0.2<br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.dhcpsrv/7850.140433336297216] DHCPSRV_MEMFILE_GET_ADDR4 obtaining IPv4 lease for address 4.0.0.2<br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.hosts/7850.140433336297216] HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS4 get one host with reservation for subnet id 786966 and IPv4 address 4.0.0.3<br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.hosts/7850.140433336297216] HOSTS_CFG_GET_ALL_ADDRESS4 get all hosts with reservations for IPv4 address 4.0.0.3<br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.hosts/7850.140433336297216] HOSTS_CFG_GET_ALL_ADDRESS4_COUNT using address 4.0.0.3, found 0 host(s)<br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.hosts/7850.140433336297216] HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS4_NULL host not found using subnet id 786966 and address 4.0.0.3<br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.dhcpsrv/7850.140433336297216] DHCPSRV_MEMFILE_GET_ADDR4 obtaining IPv4 lease for address 4.0.0.3<br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.hosts/7850.140433336297216] HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS4 get one host with reservation for subnet id 786966 and IPv4 address 4.0.0.4<br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.hosts/7850.140433336297216] HOSTS_CFG_GET_ALL_ADDRESS4 get all hosts with reservations for IPv4 address 4.0.0.4<br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.hosts/7850.140433336297216] HOSTS_CFG_GET_ALL_ADDRESS4_COUNT using address 4.0.0.4, found 0 host(s)<br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.hosts/7850.140433336297216] HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS4_NULL host not found using subnet id 786966 and address 4.0.0.4<br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.dhcpsrv/7850.140433336297216] DHCPSRV_MEMFILE_GET_ADDR4 obtaining IPv4 lease for address 4.0.0.4<br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.hosts/7850.140433336297216] HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS4 get one host with reservation for subnet id 786966 and IPv4 address 4.0.0.5<br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.hosts/7850.140433336297216] HOSTS_CFG_GET_ALL_ADDRESS4 get all hosts with reservations for IPv4 address 4.0.0.5<br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.hosts/7850.140433336297216] HOSTS_CFG_GET_ALL_ADDRESS4_COUNT using address 4.0.0.5, found 0 host(s)<br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.hosts/7850.140433336297216] HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS4_NULL host not found using subnet id 786966 and address 4.0.0.5<br>
> 2023-07-20 12:53:20.766 DEBUG [kea-dhcp4.dhcpsrv/7850.140433336297216] DHCPSRV_MEMFILE_GET_ADDR4 obtaining IPv4 lease for address 4.0.0.5<br>
><br>
><br>
> I thought it would be because that IP is being used but in the network, I don't see anyone having IP with that and also kea won't do ping before offering to my knowledge.<br>
><br>
> Please find the attached log files for more info on kea-dhcp4 and kea-dhcp4.packets module.<br>
><br>
> Overview summary<br>
> Subnet 4.0.0.0 has a MAC address with a pattern: 11:3f:ff****<br>
> Subnet 3.4.0.0 has a MAC address with a pattern: 14:3f:ff:***<br>
><br>
> Can some mean please guide why the server is unable to offer leases for the 4.0.0.0 subnet<br>
><br>
> Thanks in Advance<br>
> Kraishak<br>
> --<br>
> ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
><br>
> To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br>
><br>
> Kea-users mailing list<br>
> <a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br>
> <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><br>
-- <br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br>
<br>
Kea-users mailing list<br>
<a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><br>
</blockquote></div>