<div dir="ltr">Francis,<div>Currently, I'm hardcoding 'next-server' in kea.conf. Is it possible to do it via hook code? </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 25, 2018 at 4:23 PM, Gokulakrishnan Gopalakrishnan <span dir="ltr"><<a href="mailto:ggopalakrishnan@salesforce.com" target="_blank">ggopalakrishnan@salesforce.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks, Francis. If I want to get rid of hardcoding 'next-server' from kea.conf and move it to the hooks library by setting the field dynamically, what it the right way?</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 25, 2018 at 4:00 PM, Francis Dupont <span dir="ltr"><<a href="mailto:fdupont@isc.org" target="_blank">fdupont@isc.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Gokulakrishnan Gopalakrishnan writes:<br>
> I'm trying to assign IPs to my servers using Kea 1.3.0. Some of my servers<br>
> are UEFI configured ones and those are failing in getting IP.<br>
> When I dig deep, I found out that setting "next-server": "192.168.1.1"<br>
> manually in kea.conf works fine. I was setting next-server via hooks code<br>
> (pasted below).<br>
<br>
</span>=> next-server is a BOOTP/DHCP field, not an option. Note some of these<br>
fields have a corresponding option used for instance when the field<br>
is too small (can't happen with an IPv4 address :-).<br>
<span><br>
> // Add next server option to packet.<br>
> opt = response->getOption(DHO_HOME_A<wbr>GENT_ADDRS);<br>
<br>
</span>=> This option gives a list (vs one) of addresses of the Mobile IP<br>
home agent. So it is something different (but if it makes the client<br>
happy...).<br>
<br>
Regards<br>
<br>
Francis Dupont <<a href="mailto:fdupont@isc.org" target="_blank">fdupont@isc.org</a>><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>