<div dir="ltr"><div>Hello Mark,</div><div><br></div><div>Please can you upload your full configuration here (with any sensitive parts redacted)?  <br></div><div><br></div><div>Thank you,</div><div>Darren Ankney<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 11, 2024 at 2:43 PM Mark Blackford <mblackford@agn.tech> 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"><div class="msg4167845522524690481">





<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_4167845522524690481WordSection1">
<p class="MsoNormal"><span style="font-size:11pt">Hello Darren,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">I re-tested the BLQ from Kea last week to a Juniper Gateway router, and while the IA_NA and IA_PD DUID leases were found this time, the actual DHCPv6 Type (15) Leasequery-reply packets are undecodable. 
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">I was taking packet captures at the time and wireshark agrees:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">1) The IA Address (Type 5) response, Wireshark claims  “Trailing Stray Characters”<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">2) The IA Prefix (Type 26) response, Wireshark claims “Malformed Packet”<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">I have attached the following for the packets:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">1. Detailed BLQ Kea Log for the transaction<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">2. PCAPs take at the Kea Server<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">3. The Kea DHCP Lease File (From today)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">4. The Snippet of the Juniper Decode<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">I forgot to get the leases file on Friday, but this is a lab with only 1 unit.  I attached the file from today which looks to have the same information.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">It looks like the info that is needed to restore the lease is there, but I don’t know how to stop the packets being malformed.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Thank, <u></u><u></u></span></p>
<div>
<table border="0" cellspacing="0" cellpadding="0" width="480" style="width:5in;background:white;border-collapse:collapse">
<tbody>
<tr>
<td width="160" valign="top" style="width:120pt;padding:7.5pt 0in 9pt">
<p class="MsoNormal"><span style="color:black"><a href="http://www.alchemy-global.net/" title="http://www.alchemy-global.net/" target="_blank"><span style="font-size:10pt;font-family:"Arial",sans-serif;color:rgb(51,122,183);text-decoration:none"><img border="0" width="141" height="141" style="width: 1.4687in; height: 1.4687in;" id="m_4167845522524690481_x0000_i1026" src="cid:ii_191eaedb40e5b16b22" alt="Logo"></span></a></span><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:black"><u></u><u></u></span></p>
</td>
<td width="320" style="width:240pt;padding:4.5pt 0in">
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td width="320" style="width:239.8pt;padding:0in">
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:"Arial",sans-serif;color:rgb(61,60,63)">Mark Blackford</span></b><span style="font-size:11pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p>
</td>
</tr>
<tr>
<td width="320" style="width:239.8pt;padding:0in 0in 8.25pt">
<p class="MsoNormal" style="line-height:13.8pt"><span style="font-size:10pt;font-family:"Arial",sans-serif;color:rgb(61,60,63)">Network Engineer</span><span style="font-size:11pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p>
</td>
</tr>
<tr>
<td width="320" style="width:239.8pt;padding:0in">
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Arial",sans-serif;color:rgb(89,89,89)">678-230-8769</span><span style="font-size:11pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Arial",sans-serif"><a href="mailto:mblackford@agn.tech" target="_blank"><span style="color:rgb(70,120,134)">m</span><span style="font-size:11pt;font-family:"Aptos",sans-serif;color:rgb(70,120,134)">blackford</span><span style="color:rgb(70,120,134)">@a</span><span style="font-size:11pt;font-family:"Aptos",sans-serif;color:rgb(70,120,134)">gn.tech</span></a></span><span style="font-size:11pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<div id="m_4167845522524690481mail-editor-reference-message-container">
<div>
<div>
<div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) currentcolor currentcolor;padding:3pt 0in 0in">
<p class="MsoNormal" style="margin-bottom:12pt"><b><span style="color:black">From:
</span></b><span style="color:black">Kea-users <<a href="mailto:kea-users-bounces@lists.isc.org" target="_blank">kea-users-bounces@lists.isc.org</a>> on behalf of Mark Blackford <mblackford@agn.tech><br>
<b>Date: </b>Friday, September 6, 2024 at 9:02</span><span style="font-family:"Arial",sans-serif;color:black"> </span><span style="color:black">AM<br>
<b>To: </b>Kea user's list <<a href="mailto:kea-users@lists.isc.org" target="_blank">kea-users@lists.isc.org</a>><br>
<b>Subject: </b>Re: [Kea-users] Kea DHCPv6 Bulk Leasequery Relay-ID<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11pt">Hello Darren,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">Thank you very much for your reply and correcting this issue.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">1) I was aware of the 2.6 requirement and re-installed everything from scratch a little over a month ago.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Courier New"">[root@dhcp-test ~]# kea-dhcp4 -v</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Courier New"">2.6.1</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Courier New"">[root@dhcp-test ~]# kea-dhcp6 -v</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Courier New"">2.6.1</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">2) However, I have been following this link:</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"><a href="https://kea.readthedocs.io/en/kea-2.6.0/arm/hooks.html#bulk-leasequery-configuration" target="_blank">https://kea.readthedocs.io/en/kea-2.6.0/arm/hooks.html#bulk-leasequery-configuration</a></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">Which indicated to me that the option “extended-info-tables-enabled” would have provided the same functionality. However, as you pointed out, there was no relay ID in the lease table.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">I have since added the global parameter "store-extended-info" as you suggested, and I now see the JSON now at the end of each memfile lease.  I hope this helps anyone trying to accomplish the same thing.</span><u></u><u></u></p>
<div>
<table border="0" cellspacing="0" cellpadding="0" width="480" style="width:5in;background:white;border-collapse:collapse">
<tbody>
<tr>
<td width="160" valign="top" style="width:120pt;padding:7.5pt 0in 9pt">
<p class="MsoNormal"><span style="color:black"><a href="http://www.alchemy-global.net/" title="http://www.alchemy-global.net/" target="_blank"><span style="color:black;text-decoration:none"><span style="font-size:10pt;font-family:"Arial",sans-serif;color:rgb(51,122,183)"><img border="0" width="141" height="141" style="width: 1.4687in; height: 1.4687in;" id="m_4167845522524690481Picture_x0020_1" src="cid:ii_191eaedb40d4cff311" alt="Logo"></span></span></a></span><u></u><u></u></p>
</td>
<td width="320" style="width:240pt;padding:4.5pt 0in">
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td width="320" style="width:239.8pt;padding:0in">
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:"Arial",sans-serif;color:rgb(61,60,63)">Mark Blackford</span></b><u></u><u></u></p>
</td>
</tr>
<tr>
<td width="320" style="width:239.8pt;padding:0in 0in 8.25pt">
<p class="MsoNormal" style="line-height:13.8pt"><span style="font-size:10pt;font-family:"Arial",sans-serif;color:rgb(61,60,63)">Network Engineer</span><u></u><u></u></p>
</td>
</tr>
<tr>
<td width="320" style="width:239.8pt;padding:0in">
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Arial",sans-serif;color:rgb(89,89,89)">678-230-8769</span><u></u><u></u></p>
<p class="MsoNormal"><a href="mailto:mblackford@agn.tech" target="_blank"><span style="font-size:10pt;font-family:"Arial",sans-serif;color:rgb(70,120,134)">m</span><span style="font-size:11pt;color:rgb(70,120,134)">blackford</span><span style="font-size:10pt;font-family:"Arial",sans-serif;color:rgb(70,120,134)">@a</span><span style="font-size:11pt;color:rgb(70,120,134)">gn.tech</span></a><u></u><u></u></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal"><span style="font-size:11pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><u></u><u></u></p>
<div id="m_4167845522524690481mail-editor-reference-message-container">
<div>
<div>
<div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) currentcolor currentcolor;padding:3pt 0in 0in">
<p class="MsoNormal" style="margin-bottom:12pt"><b><span style="color:black">From:
</span></b><span style="color:black">Kea-users <<a href="mailto:kea-users-bounces@lists.isc.org" target="_blank">kea-users-bounces@lists.isc.org</a>> on behalf of Darren Ankney <<a href="mailto:darren.ankney@gmail.com" target="_blank">darren.ankney@gmail.com</a>><br>
<b>Date: </b>Friday, September 6, 2024 at 4:33</span><span style="font-family:"Arial",sans-serif;color:black"> </span><span style="color:black">AM<br>
<b>To: </b>Kea user's list <<a href="mailto:kea-users@lists.isc.org" target="_blank">kea-users@lists.isc.org</a>><br>
<b>Subject: </b>Re: [Kea-users] Kea DHCPv6 Bulk Leasequery Relay-ID</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11pt">Hi Mark,<br>
<br>
Two questions:<br>
<br>
1. Are you using Kea 2.6.1 ? I think the relay-id method was not<br>
available before 2.6<br>
2. Have you globally set "store-extended-info": true ? (see:<br>
</span><a href="https://kea.readthedocs.io/en/kea-2.6.1/arm/dhcp6-srv.html#storing-extended-lease-information)" target="_blank"><span style="font-size:11pt">https://kea.readthedocs.io/en/kea-2.6.1/arm/dhcp6-srv.html#storing-extended-lease-information)</span></a><span style="font-size:11pt"><br>
as this is required as well.  It doesn't appear so from the lease you<br>
pasted as I don't see any data in the "user-context" field.<br>
<br>
Thank you,<br>
Darren Ankney<br>
<br>
On Wed, Aug 28, 2024 at 3:23</span><span style="font-size:11pt;font-family:"Arial",sans-serif"> </span><span style="font-size:11pt">PM Mark Blackford <mblackford@agn.tech> wrote:<br>
><br>
> Hello,<br>
><br>
><br>
><br>
> I am trying to use the Bulk Leasequery feature of Kea DHCP6 to reload Gateway routers with delegated (or all) leases that have been lost due to either a reload or crash scenario.  Since I want to reload thousands of IA_NA/IA_PD leases on demand, I expected
 to see a very clear “glue” between the relay ID and the target leases.  But I do not and using default commands from my Juniper gateways is not resulting in any leases being returned.<br>
><br>
><br>
><br>
> My main question that I am struggling with is where do I find where the Relay-ID value is stored to properly query for leases tied to it since I do not even know if my relay-id is valid?<br>
><br>
><br>
><br>
> Based on 16.16.6. DHCPv6 Bulk Leasequery </span><a href="https://kea.readthedocs.io/en/kea-2.6.0/arm/hooks.html#dhcpv6-bulk-leasequery" target="_blank"><span style="font-size:11pt">https://kea.readthedocs.io/en/kea-2.6.0/arm/hooks.html#dhcpv6-bulk-leasequery</span></a><span style="font-size:11pt">,
 I re-installed Kea to use a memfile lease backend to use those features.<br>
><br>
><br>
><br>
> My hook library config is below with logging turned to max:<br>
><br>
><br>
><br>
>     "hooks-libraries": [<br>
><br>
>           {<br>
><br>
>               "library": "/usr/lib64/kea/hooks/libdhcp_lease_query.so",<br>
><br>
>               "parameters": {<br>
><br>
>                   "requesters": [ "fc00:d2c0:10:170::2", "fc00:d2c0:10:170::3" ],<br>
><br>
>                   "advanced" : {<br>
><br>
>                       "bulk-query-enabled": true,<br>
><br>
>                       "active-query-enabled": false,<br>
><br>
>                       "extended-info-tables-enabled": true,<br>
><br>
>                       "lease-query-ip": "fc00:d2c0:10:170::23",<br>
><br>
>                       "lease-query-tcp-port": 547,<br>
><br>
>                   },<br>
><br>
>               },<br>
><br>
>           },<br>
><br>
><br>
><br>
>     "loggers": [<br>
><br>
><br>
><br>
>       {<br>
><br>
>         "name": "kea-dhcp6.lease-query-hooks",<br>
><br>
>         "severity": "DEBUG",<br>
><br>
>         "debuglevel": 99,<br>
><br>
>         "output_options": [<br>
><br>
>           {<br>
><br>
>             "output": "/var/log/kea/dhcp6-blq.log",<br>
><br>
>             "maxver": 10<br>
><br>
>           }<br>
><br>
>         ]<br>
><br>
>       },<br>
><br>
><br>
><br>
> I see the bulk message come into the log file, but it also says there are no leases when I know there is at least 1 test lease (IA_NA/IA_PD):<br>
><br>
><br>
><br>
> [root@dhcp-test ~]# cat /var/lib/kea/dhcp6.leases<br>
><br>
> address,duid,valid_lifetime,expire,subnet_id,pref_lifetime,lease_type,iaid,prefix_len,fqdn_fwd,fqdn_rev,hostname,hwaddr,state,user_context,hwtype,hwaddr_source,pool_id<br>
><br>
> 2001:db8:1580:255::100,00:03:00:01:b8:94:70:fb:20:6e,600,1724871654,1,600,0,1,128,0,0,resgw,b8:94:70:fb:20:6e,0,,1,2,0<br>
><br>
> 2001:db8:8000::,00:03:00:01:b8:94:70:fb:20:6e,600,1724871654,1,600,2,1,56,0,0,resgw,b8:94:70:fb:20:6e,0,,1,2,0<br>
><br>
><br>
><br>
> But the BLQ Hook Log says there are “no active leases”:<br>
><br>
><br>
><br>
> 2024-08-21 14:54:10.244 DEBUG [kea-dhcp6.lease-query-hooks/1319.140527284262464] BULK_LEASE_QUERY_QUERY_RECEIVED A bulk lease query packet received from fc00:d2c0:10:170::3, details: local_address=[::]:0, remote_address=[fc00:d2c0:10:170::3]:53751,<br>
><br>
> msg_type=LEASEQUERY (14), trans_id=0xeda378,<br>
><br>
> options:<br>
><br>
>   type=00001, len=00031: 00:02:00:00:05:83:01:66:34:3a:62:66:3a:61:38:3a:33:39:3a:63:65:3a:32:30:00:00:00:00:00:00:00<br>
><br>
>   type=00044, len=00072: 3 (uint8) :: (ipv6-address),<br>
><br>
> options:<br>
><br>
>     type=00006, len=00016: 18(uint16) 37(uint16) 47(uint16) 15(uint16) 16(uint16) 12(uint16) 100(uint16) 79(uint16)<br>
><br>
>     type=00053, len=00031: 00:02:00:00:05:83:01:66:34:3a:62:66:3a:61:38:3a:33:39:3a:63:65:3a:32:30:00:00:00:00:00:00:00<br>
><br>
> No relays traversed.<br>
><br>
><br>
><br>
> 2024-08-21 14:54:10.244 DEBUG [kea-dhcp6.lease-query-hooks/1319.140527284262464] BULK_LEASE_QUERY_RESPONSE_SENT A bulk lease query response sent to fc00:d2c0:10:170::3, details: local_address=[::]:0, remote_address=[fc00:d2c0:10:170::3]:53751,<br>
><br>
> msg_type=LEASEQUERY_REPLY (15), trans_id=0xeda378,<br>
><br>
> options:<br>
><br>
>   type=00001, len=00031: 00:02:00:00:05:83:01:66:34:3a:62:66:3a:61:38:3a:33:39:3a:63:65:3a:32:30:00:00:00:00:00:00:00<br>
><br>
>   type=00002, len=00014: 00:01:00:01:2d:90:6d:83:00:50:56:be:a7:9a<br>
><br>
>   type=00013, len=00018: Success(0) "no active leases"<br>
><br>
> No relays traversed.<br>
><br>
><br>
><br>
> I believe this is a crucial feature for anyone launching IPv6 with Prefix Delegation.  Has anyone seen this feature work using relay-id?  How did you know which one to use?<br>
><br>
><br>
><br>
> Thanks,<br>
><br>
> Mark<br>
><br>
> --<br>
> ISC funds the development of this software with paid support subscriptions. Contact us at
</span><a href="https://www.isc.org/contact/" target="_blank"><span style="font-size:11pt">https://www.isc.org/contact/</span></a><span style="font-size:11pt"> for more information.<br>
><br>
> To unsubscribe visit </span><a href="https://lists.isc.org/mailman/listinfo/kea-users" target="_blank"><span style="font-size:11pt">https://lists.isc.org/mailman/listinfo/kea-users</span></a><span style="font-size:11pt">.<br>
><br>
> Kea-users mailing list<br>
> <a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br>
> </span><a href="https://lists.isc.org/mailman/listinfo/kea-users" target="_blank"><span style="font-size:11pt">https://lists.isc.org/mailman/listinfo/kea-users</span></a><span style="font-size:11pt"><br>
-- <br>
ISC funds the development of this software with paid support subscriptions. Contact us at
</span><a href="https://www.isc.org/contact/" target="_blank"><span style="font-size:11pt">https://www.isc.org/contact/</span></a><span style="font-size:11pt"> for more information.<br>
<br>
To unsubscribe visit </span><a href="https://lists.isc.org/mailman/listinfo/kea-users" target="_blank"><span style="font-size:11pt">https://lists.isc.org/mailman/listinfo/kea-users</span></a><span style="font-size:11pt">.<br>
<br>
Kea-users mailing list<br>
<a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br>
</span><a href="https://lists.isc.org/mailman/listinfo/kea-users" target="_blank"><span style="font-size:11pt">https://lists.isc.org/mailman/listinfo/kea-users</span></a><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

-- <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>
</div></blockquote></div>