NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: limit dhclient to one server only?



On Fri, Aug 16, 2013 at 11:19:42AM +0300, Jukka Marin wrote:
> On Fri, Aug 16, 2013 at 09:07:55AM +0100, Patrick Welche wrote:
> > > > Something like a "vendor encapsulated option"?
> > > 
> > > Probably, but can you make dhclient require a certain option _and_ a 
> > > certain
> > > value for the option (not just that the option exists - the option numbers
> > > may be used by some other dhcp server which would break the system unless 
> > > a
> > > special unique value was also required).
> > 
> > Selectively quoting from dhcpcd.conf, maybe this would be useful?
> > 
> >      require option
> >              Requires the option to be present in all DHCP messages, 
> > otherwise
> >              the message is ignored.  It can be a variable to be used in
> >              dhcpcd-run-hooks(8) or the numerical value.
> 
> That might work, I guess I'll have to give it a try.. I was afraid it would
> only require the option to be present, not any specific value..

Isn't that where the -run-hooks come in?

P


Home | Main Index | Thread Index | Old Index