<br><br><div class="gmail_quote">On Wed, Jun 13, 2012 at 5:37 PM, Łukasz Siemiradzki <span dir="ltr"><<a href="mailto:lukasz.siemiradzki@gmail.com" target="_blank">lukasz.siemiradzki@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2012/6/14 Chengyu Fan <<a href="mailto:chengy.fan@gmail.com">chengy.fan@gmail.com</a>>:<br>
<div class="im">> Hi~<br>
> Does anyone know that if there is a way to let the DHCP client accept a<br>
> DHCPOFFER when there is no OFFER satisfy his requirement?<br>
><br>
> Specifically, my DHCP client requests an private option in the DHCPDISCOVER,<br>
> and I want it always choose the OFFER with that private option first.<br>
<br>
</div>What do you mean by private option? Do you mean rfc2132 option tags?<br></blockquote><div><br></div><div>The private option is <span style="background-color:rgb(253,245,230);font-family:'Times New Roman';font-size:medium;font-weight:bold;text-align:center">224 -254. They are reserved for private use.</span> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
> But if the servers in the local domain don't provide this option, the client<br>
> needs to choose an OFFER and request an IP address. So the client can always<br>
> have an IP.<br>
><br>
> How to configure the dhclient.conf can make it work as above?<br>
><br>
<br>
</div>If I understand you correctly you should limit the "request" list to<br>
the absolute minimum. I.e. on my debian the list is following:<br>
request subnet-mask, broadcast-address, time-offset, routers,<br>
domain-name, domain-name-servers, domain-search,<br>
netbios-name-servers, netbios-scope, interface-mtu,<br>
rfc3442-classless-static-routes, ntp-servers;<br>
you may change this into:<br>
request subnet-mask, broadcast-address,routers;<br></blockquote><div><br></div><div>Yes, I can change the request list as your example. For instance, I can request a private option 246.</div><div>In this case, if multiple OFFERs arrive, I think the client will choose the first one, right? </div>
<div>But the first OFFER may not contain option 246. So I think I can use "require" in the configuration file to let the client only accept the OFFER which contains option 246. However, the "require" does not allow the client to choose the OFFER without option 246. Therefore, if no DHCP server provides option 246, the client will not choose any of them and cannot get IP either.</div>
<div><br></div><div>So my question is how to configure the dhclient.conf to let the client choose a OFFER without option 246, when no DHCP servers provide such option 246?</div><div><br></div><div>Do I make myself clear?</div>
<div><br></div><div>Thank you,</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Regards / Pozdrawiam<br>
Łukasz Siemiradzki<br>
--<br>
"Omnes homines natura scire desiderant"<br>
Aristotelis<br>
<div class="im"><br>
> Thanks,<br>
><br>
> --<br>
> Regards,<br>
> Chengyu Fan<br>
><br>
</div>_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a></blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>Chengyu Fan<br>