Conditional expression inside pool
Sharkey, Patrick M.
psharkey at draper.com
Fri Feb 2 11:39:45 UTC 2007
Simon's suggestion worked wonderfully.
Thanks.
> -----Original Message-----
> From: dhcp-users-bounce at isc.org
> [mailto:dhcp-users-bounce at isc.org] On Behalf Of Simon Hobson
> Sent: Thursday, February 01, 2007 10:50 AM
> To: dhcp-users at isc.org
> Subject: Re: Conditional expression inside pool
>
> Sharkey, Patrick M. wrote:
>
> >What is the correct syntax for conditionally setting the
> next-server and
> >filename directives inside a pool?
>
> Wrong question !
>
> >I have one subnet defined where I permit unknown clients to obtain a
> >lease. This is to accommodate systems performing a PXE boot.
> However, I
> >discovered that known clients were unable to obtain a lease when PXE
> >booting, so I added the next-server and filename directives
> to the known
> >clients pool. I would prefer to conditionally set these directives if
> >the client is a member of class "PXE" as defined below:
> >
> >class "PXE" {
> > match if substring (option vendor-class-identifier, 0, 9) =
> >"PXEClient";
> >}
>
> Right question !
>
> Try :
>
> class "PXE" {
> match if substring (option vendor-class-identifier, 0, 9) =
> "PXEClient";
> next-server 192.168.153.26;
> filename "OSChooser\\i386\\startrom.com";
> }
>
>
>
>
More information about the dhcp-users
mailing list