How to configure the dhclient.conf to let it eventually accept an OFFER even if no OFFERs satisfy the requirements?

Chengyu Fan chengy.fan at gmail.com
Thu Jun 14 00:06:55 UTC 2012


On Wed, Jun 13, 2012 at 5:37 PM, Łukasz Siemiradzki <
lukasz.siemiradzki at gmail.com> wrote:

> 2012/6/14 Chengyu Fan <chengy.fan at gmail.com>:
> > Hi~
> > Does anyone know that if there is a way to let the DHCP client accept a
> > DHCPOFFER when there is no OFFER satisfy his requirement?
> >
> > Specifically, my DHCP client requests an private option in the
> DHCPDISCOVER,
> > and I want it always choose the OFFER with that private option first.
>
> What do you mean by private option? Do you mean rfc2132 option tags?
>

The private option is 224 -254. They are reserved for private use.

>
> > But if the servers in the local domain don't provide this option, the
> client
> > needs to choose an OFFER and request an IP address. So the client can
> always
> > have an IP.
> >
> > How to configure the dhclient.conf can make it work as above?
> >
>
> If I understand you correctly you should limit the "request" list to
> the absolute minimum. I.e. on my debian the list is following:
> request subnet-mask, broadcast-address, time-offset, routers,
>        domain-name, domain-name-servers, domain-search,
>        netbios-name-servers, netbios-scope, interface-mtu,
>        rfc3442-classless-static-routes, ntp-servers;
> you may change this into:
>  request subnet-mask, broadcast-address,routers;
>

Yes, I can change the request list as your example. For instance, I can
request a private option 246.
In this case, if multiple OFFERs arrive, I think the client will choose the
first one, right?
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.

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?

Do I make myself clear?

Thank you,



>
> Regards / Pozdrawiam
> Łukasz Siemiradzki
> --
> "Omnes homines natura scire desiderant"
>                                            Aristotelis
>
> > Thanks,
> >
> > --
> > Regards,
> > Chengyu Fan
> >
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users




-- 
Regards,
Chengyu Fan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20120613/9fa1193c/attachment.html>


More information about the dhcp-users mailing list