<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Hi Xuo,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
I don't know if you made any progress on this.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
I have been playing a bit more with dhpv6 these days and in fact, when a client is assigned to class UNKNOWN I believe that it only means that no host-reservation was found by KEA for that client.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
It does not mean that your client-class was not assigned to the client.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
I have for example a client that got this:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0">
2023-02-02 15:23:50.314 DEBUG [kea-dhcp6.dhcp6/2605.139812835567808] DHCP6_CLASS_ASSIGNED duid=[xxxx], tid=0x37acf: client packet has been assigned to the following class(es): UNKNOWN</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0">
<br class="ContentPasted0">
2023-02-02 15:23:50.314 WARN [kea-dhcp6.alloc-engine/2605.139812835567808] ALLOC_ENGINE_V6_ALLOC_FAIL_CLASSES duid=[xxxx], tid=0x37acf: Failed to allocate an IPv6 address for client with classes: ALL, HA_kea1, my_class1, my_class2, my_class3,
<b>UNKNOWN</b><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0">
So from the above lines you can see that KEA has associated not only class "UNKNOWN" to the client, but also <span style="background-color:rgb(255, 255, 255);display:inline !important" class="ContentPasted1">my_class1, my_class2, my_class3 for which we got</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0">
<span style="background-color:rgb(255, 255, 255);display:inline !important" class="ContentPasted1 ContentPasted2">EVAL_RESULT Expression my_class1 evaluated to 1<br>
</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">
<span class="ContentPasted0" style="font-size:12pt;margin:0px;background-color:rgb(255, 255, 255)"><span class="ContentPasted1 ContentPasted2 ContentPasted3" style="margin:0px;background-color:rgb(255, 255, 255);display:inline !important">EVAL_RESULT Expression
my_class2 evaluated to 1<br class="ContentPasted3">
</span></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
<div style="margin:0px"></div>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
<span class="ContentPasted0" style="font-size:12pt;margin:0px;background-color:rgb(255, 255, 255)"><span class="ContentPasted1 ContentPasted2 ContentPasted4" style="margin:0px;background-color:rgb(255, 255, 255);display:inline !important">EVAL_RESULT Expression
my_class3 evaluated to 1<br class="ContentPasted4">
</span></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
<div style="margin:0px"></div>
<br class="ContentPasted4">
For each packet, you will find 2 debug lines from KEA, here is another example I have (for a KNOWN client this time):</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 ContentPasted5">
2023-02-02 16:43:59.942 DEBUG [kea-dhcp6.dhcp6/7590.139769432221888] DHCP6_CLASS_ASSIGNED duid=[yyyy], tid=0x64ffd2: client packet has been assigned to the following class(es): KNOWN
<div class="ContentPasted5">2023-02-02 16:43:59.943 DEBUG [kea-dhcp6.dhcp6/7590.139769432221888] DHCP6_CLASS_ASSIGNED duid=[yyyy], tid=0x64ffd2: client packet has been assigned to the following class(es): ALL, HA_kea1, my_class1,
<span style="background-color:rgb(255, 255, 255);display:inline !important">my_class2</span>,
<span style="background-color:rgb(255, 255, 255);display:inline !important">my_class3</span>,
<b>KNOWN</b></div>
<br class="ContentPasted3">
<span style="font-size:12pt;margin:0px"></span>Hope this helps.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof ContentPasted5">
Cheers,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof ContentPasted5">
Veronique</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof ContentPasted5">
<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 Xuo Guoto via Kea-users <kea-users@lists.isc.org><br>
<b>Sent:</b> Tuesday, December 6, 2022 8:33 AM<br>
<b>To:</b> Kea-users@lists.isc.org <kea-users@lists.isc.org><br>
<b>Subject:</b> Re: [Kea-users] DHCPv6 option 16 and built in client class</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Thanks for your reply, Darren.<br>
<br>
I have been trying different approaches to get client class working with DHCPv6.<br>
<br>
<br>
Sent with Proton Mail secure email.<br>
<br>
</div>
<div class="PlainText">
<div class="elementToProof"><span><br>
</span></div>
</div>
</span></font></div>
</body>
</html>