Conditional expression inside pool

Simon Hobson dhcp1 at thehobsons.co.uk
Thu Feb 1 15:49:53 UTC 2007


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