[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dhcp-server
Subject:    Re: DHCP PXE boot w/ multiple subnets
From:       Glenn Satchell <Glenn.Satchell () uniq ! com ! au>
Date:       2005-07-29 13:57:47
Message-ID: 200507291357.XAA10974 () lager ! uniq ! com ! au
[Download RAW message or body]

   *** From dhcp-server -- To unsubscribe, see the end of this message. ***

>Date: Thu, 28 Jul 2005 15:20:18 -0500
>From: Jeff Wieland <wieland@purdue.edu>
>To: dhcp-server@isc.org
>Subject: Re: DHCP PXE boot w/ multiple subnets
>
>Glenn Satchell wrote:
>> 
>
>The option keyword above causes a syntax error.
>
>I ended up using if statements, along the lines of
>
>subnet 192.168.0.0 netmask 255.255.255.0 {
>      authoritative;
>      option routers 192.168.0.1;
>
>      ...
>
>      if (substring(option vendor-class-identifier, 0, 9) = "PXEClient") {
>          next-server 192.168.0.12;      # foobar.net.purdue.edu
>          option tftp-server-name "foobar.net.purdue.edu";
>          server-name "foobar.net.purdue.edu";
>          filename "startrom.com";
>      }
>
>      ...
>}
>
>It still seems like you should be able to do it with classes.  I
>guess you could key off the vendor-class-identifier and perhaps the
>subnet somehow and get it done.

class "pxe" {
     match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
}

subnet 192.168.0.0 netmask 255.255.255.0 {
      authoritative;
      option routers 192.168.0.1;
      pool {
        deny members of "pxe";
        range ... ;
      }
      pool {
        allow members of "pxe";
        range ... ;
        next-server 192.168.0.12;      # foobar.net.purdue.edu
        option tftp-server-name "foobar.net.purdue.edu";
        server-name "foobar.net.purdue.edu";
        filename "startrom.com";
      }
}

Not sure if you can use the same range in both pools, but it might be
possible. The dhcpd.conf man page is not clear one way or the other.
Otherwise just hive off a small chunk of the subnet for PXE.

regards,
-glenn


-----------------------------------------------------------------------
List Archives : http://www.isc.org/ops/lists/
Unsubscribe   : http://www.isc.org/sw/dhcp/dhcp-lists.php    
-or-          : mailto:dhcp-server-request@isc.org?Subject=unsubscribe  
-----------------------------------------------------------------------

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic