<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">More on this:</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">The mac address is in the host-reservation in the configuration file.</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="background-color:rgb(255, 255, 255);display:inline !important" class="ContentPasted1">Why
 is it is used by KEA at the first boot and not at the second one ?</span> </span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">and even more, KEA knows about the mac address since it identifies the host-reservation;
 it logs out the following:</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span class="x_ContentPasted0" style="margin:0px"><b class="ContentPasted0">2023-01-16
 17:52:09.477 DEBUG [kea-dhcp6.alloc-engine/21898.139652277565632] ALLOC_ENGINE_V6_ALLOC_NO_LEASES_HR no leases found but reservations exist for client duid=[second_duid], tid=0xedb614</b></span>
<div style="margin:0px"><br class="x_ContentPasted0 ContentPasted0">
</div>
<div class="x_ContentPasted0 ContentPasted0" style="margin:0px"><br>
</div>
<span class="x_ContentPasted0" style="margin:0px"><b class="ContentPasted0">2023-01-16 17:52:09.478 DEBUG [kea-dhcp6.alloc-engine/21898.139652277565632] ALLOC_ENGINE_V6_ALLOC_UNRESERVED no static reservations available - trying to dynamically allocate leases
 for client duid=[second_duid], tid=0xedb614</b></span><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span class="x_ContentPasted0" style="margin:0px"><b class="ContentPasted0"><br>
</b></span></span></div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
The problem is just that KEA thinks that the lease is not available.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
In addition I have done a traffic capture, and I confirm that the client mac address is communicated each time to KEA via option 79.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
Thanks for any help you may add on this point,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
Cheers,
<div>Veronique</div>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Kea-users <kea-users-bounces@lists.isc.org> on behalf of Darren Ankney <darren.ankney@gmail.com><br>
<b>Sent:</b> Tuesday, January 17, 2023 12:32 PM<br>
<b>To:</b> kea-users@lists.isc.org <kea-users@lists.isc.org><br>
<b>Subject:</b> Re: [Kea-users] IPV6 client gets the wrong IP for sometime after a reboot</font>
<div> </div>
</div>
<div style="line-break:after-white-space">The trouble is that the server has no way to know it’s the same client if the DUID is unstable.  If the mac address is available, you can assign a reservation based on that.  Then it wouldn’t matter what DUID the client
 provides.  This is the same behavior as in ISC DHCP concerning DHCPv6.  It is defined in RFC 8415.  Basically: The DUID must be present and the client must use the same DUID.  The server must use that as the identifier to assign leases.<br>
<div><br>
<blockquote type="cite">
<div>On Jan 17, 2023, at 6:18 AM, Veronique Lefebure <Veronique.Lefebure@cern.ch> wrote:</div>
<br class="x_Apple-interchange-newline">
<div>
<div class="x_elementToProof" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; background-color:rgb(255,255,255)">Waw. The client behaviour is not under control of the DHCP server admins..</span></div>
<div class="x_elementToProof" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; background-color:rgb(255,255,255)">This is a behaviour different from the ISC DHCP server behaviour, right ?</span></div>
<div id="x_appendonsend" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
</div>
<hr tabindex="-1" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; display:inline-block; width:654.625px">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important"></span>
<div id="x_divRplyFwdMsg" dir="ltr" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<font face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b><span class="x_Apple-converted-space"> </span>Kea-users <kea-users-bounces@lists.isc.org> on behalf of Kevin P. Fleming <lists.kea-users@kevin.km6g.us><br>
<b>Sent:</b><span class="x_Apple-converted-space"> </span>Tuesday, January 17, 2023 12:00 PM<br>
<b>To:</b><span class="x_Apple-converted-space"> </span>kea-users@lists.isc.org <kea-users@lists.isc.org><br>
<b>Subject:</b><span class="x_Apple-converted-space"> </span>Re: [Kea-users] IPV6 client gets the wrong IP for sometime after a reboot</font>
<div> </div>
</div>
<div style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div>On Tue, Jan 17, 2023, at 04:54, Veronique Lefebure wrote:<br>
</div>
<blockquote type="cite" id="x_x_qt">
<div class="x_x_qt-elementToProof"><span class="x_x_qt-elementToProof" style="background-color:rgb(255,255,255)"><span class="x_x_font" style="font-family:Calibri,Arial,Helvetica,sans-serif"><span class="x_x_size" style="font-size:12pt">Hi,</span></span></span><br>
</div>
<div class="x_x_qt-elementToProof"><span class="x_x_qt-elementToProof" style="background-color:rgb(255,255,255)"><span class="x_x_font" style="font-family:Calibri,Arial,Helvetica,sans-serif"><span class="x_x_size" style="font-size:12pt"></span></span></span><br>
</div>
<div class="x_x_qt-elementToProof"><span class="x_x_qt-elementToProof" style="background-color:rgb(255,255,255)"><span class="x_x_font" style="font-family:Calibri,Arial,Helvetica,sans-serif"><span class="x_x_size" style="font-size:12pt">I have observed that
 an IPV6 client gets the wrong IP when it reboots.</span></span></span><br>
</div>
<div class="x_x_qt-elementToProof"><span class="x_x_qt-elementToProof" style="background-color:rgb(255,255,255)"><span class="x_x_font" style="font-family:Calibri,Arial,Helvetica,sans-serif"><span class="x_x_size" style="font-size:12pt">See detailed logs below.</span></span></span><br>
</div>
<div class="x_x_qt-elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; background-color:rgb(255,255,255)">
The problem seems to be due to the fact the DUID of the client changes after reboot.<br>
</div>
<div class="x_x_qt-elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; background-color:rgb(255,255,255)">
Anyone else has observed the same ?<br>
</div>
<div class="x_x_qt-elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; background-color:rgb(255,255,255)">
How to go around that and make sure that the client gets the correct IP straightaway after reboot ?<br>
</div>
</blockquote>
<div><br>
</div>
<div>You'll need to find a way to configure the client to use a stable DUID if you want it to be given a lease from a host reservation.<br>
</div>
<div><br>
</div>
</div>
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">--<span class="x_Apple-converted-space"> </span></span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">ISC
 funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.</span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">To
 unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.</span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">Kea-users
 mailing list</span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">Kea-users@lists.isc.org</span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">https://lists.isc.org/mailman/listinfo/kea-users</span></div>
</blockquote>
</div>
<br>
</div>
</body>
</html>