Reservations only, without a range?

Glenn Satchell glenn.satchell at uniq.com.au
Wed May 30 13:54:05 UTC 2012


You don't need to specify supersede, it's a dhclient command. Just write 
the command as you would in the config file:

host ... {
     ....
     filename "pxelinux.0";
     next-server 172.26.101.242;
     option host-name = "buildtest8.corp.com";
}
The filename and next-server can be specified in a group statement if 
there are several hosts with the same options.

If you use "use-host-decl-names on" in the scope outside the host 
statements, then the name in the host statement will be used as the 
host-name value. This could save some typing in a long file.

regards,
-glenn

On 05/30/12 01:27, glen.neff at emc.com wrote:
> I do essentially what you're seeking to do in a scale of tens of thousands of machines, so it's definitely possible.
>
> Two things I see, however:
>
> First of all, the MAC address in your syntax example does not match the log entries you've shared.
>
> Secondly, I don't think you want the 'dynamic;' flag.
>
> -G
>
> /*
>   * Glen R. J. Neff
>   * USD Lab Operations Infrastructure Team
>   * glen.neff at emc.com
>   *
>   * EMC^2 == E^2
>   */
> ________________________________________
> From: dhcp-users-bounces+glen.neff=emc.com at lists.isc.org [dhcp-users-bounces+glen.neff=emc.com at lists.isc.org] On Behalf Of Baird, Josh [jbaird at follett.com]
> Sent: Tuesday, May 29, 2012 11:20 AM
> To: dhcp-users at lists.isc.org
> Subject: Reservations only, without a range?
>
> Hi,
>
> I'm trying to setup a scope that only offers leases to those hosts who have reservations defined.  Therefore, I do not want to specify a "range," as I do not want dhcpd to hand out any leases who don't have reservations.  However, I am getting the "no free leases" error in my logs:
>
> May 29 10:03:42 fc-wrform01 dhcpd: DHCPDISCOVER from 00:50:56:a5:00:1b via eth0: network 172.26.100.0/22: no free leases
>
> May 29 10:03:44 fc-wrform01 dhcpd: DHCPREQUEST for 172.26.100.253 (172.26.101.230) from 00:50:56:a5:00:1b via eth0: unknown lease 172.26.100.253.
>
> My configuration is as follows:
>
> --
>
> ddns-update-style interim;
> omapi-port 7911;
> deny unknown-clients;
> ignore client-updates;
> authoritative;
> allow booting;
> allow bootp;
>
> subnet 172.26.100.0 netmask 255.255.252.0 {
>    option routers      172.26.100.1;
>    option subnet-mask  255.255.252.0;
>    option domain-name    "corp.com";
>    option domain-name-servers  172.26.137.135;
>    option log-servers    syslog;
>    option ntp-servers    ntp;
>    default-lease-time 21600;
>    max-lease-time 43200;
>
> }
>
> host buildtest8.corp.com {
>    dynamic;
>    hardware ethernet 00:50:56:a5:00:1a;
>    fixed-address 172.26.100.252;
>          supersede server.filename = "pxelinux.0";
>          supersede server.next-server = ac:1a:65:f2;
>          supersede host-name = "buildtest8.corp.com";
> }
>
> Is this type of configuration possible?
>
> Thanks,
>
> Josh
>


More information about the dhcp-users mailing list