<div dir="ltr"><p>Hi Doug,</p>
<p>Thanks for pointing me to the "Redefining Standard Options" documentation. That example using Option 60 and the <code>"ACME IP Phone"</code> Vendor Class Identifier was helpful.</p>
<p>However, in my case, the client does <strong>not</strong> set a known or consistent Vendor Class Identifier (Option 60), so the server has no way of classifying it into a specific client class like "ACMEphone".</p>
<p>My goal is to override or send custom data on Option 121, even though it's a standard option, because the client expects some custom behavior under that code (as was possible in ISC DHCP).</p>
<p>Given that the client's Option 60 is not predictable or predefined, is there a way in Kea to:</p>
<ol>
<li>
<p>Override Option 121 globally (even outside client classification)?</p>
</li>
<li>
<p>Or assign clients to a class dynamically based on other conditions, so a custom Option 121 can be applied?<br></p></li>
</ol><div>Regards.<br>Dipesh</div>
<p></p></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Jun 25, 2025 at 12:51 AM Dipesh Kayastha <<a href="mailto:er.dipesh.kayastha@gmail.com">er.dipesh.kayastha@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"><div dir="ltr"><p>Hi Kea Dev Team,</p><p>
</p><p>I’m migrating from ISC DHCP to Kea and encountered an issue when attempting to define a custom option using code 121. In ISC DHCP, I was able to define option 121 for custom use as follows:<br><br>option custom-option-121 code 121 = array of integer 8;<br><br></p><p>In Kea, when I try to replicate that using:</p><p>
</p><pre><div><div>"option-def": [<br> {<br> "name": "custom-option-121",<br> "code": 121,<br> "type": "uint8",</div><div> "array": true<br> <br> }<br>]</div></div></pre><p>I get the following error:<br>DHCP4_PARSER_FAIL failed to create or run parser for configuration element option-def: unable to override definition of option '121' in standard option space 'dhcp4'<br><br><br></p><p>I understand from the Kea ARM documentation (<a rel="noopener" href="https://kea.readthedocs.io/en/latest/arm/dhcp4-srv.html#id5" target="_blank">https://kea.readthedocs.io/en/latest/arm/dhcp4-srv.html#id5</a>) that Option 121 is already part of the standard DHCPv4 option definitions. However, in my use case, I need to send custom data under option 121 because the client expects it.</p><p>Is there a supported way in Kea to:</p><ol>
<li>
<p>Override standard options like 121 with custom format/data?</p>
</li>
<li>
<p>Send custom data using option 121 in a way compatible with clients expecting it?</p>
</li>
</ol><p>
</p><p></p><p></p><p>Any advice or suggested workarounds would be greatly appreciated.<br>Note that this is not only for option 121, I am also using other option numbers also as custom option.<br><br>Best regards,<br>
Dipesh</p></div>
</blockquote></div>