dhcp with only static leases

Glenn Satchell Glenn.Satchell at uniq.com.au
Sun Oct 11 14:32:14 UTC 2009

I suggest something like this:

ignore client-updates;
ddns-update-style interim;
ddns-updates off;
boot-unknown-clients off;

max-lease-time 100000;
default-lease-time 84600;

option domain-name-servers;

subnet netmask {
	option routers;

host n192_168_224_77 {
	hardware ethernet 00:50:56:c0:00:01;

You do not need any range statement and subsequant pool. The range you
proposed would have clashed with the router's address.

It is customary to put the option routers statement in the subnet
definition. This makes sense if you have more than one subnet as each
will have it's own gateway router.

option subnet-mask is optional, and can be calculated from the subnet

host statements should be in the global scope, otherwise they can
inherit subnet definitions which may not be sensible.

Glenn Satchell   mailto:glenn.satchell at uniq.com.au | Miss 9: What do you
Uniq Advances Pty Ltd       http://www.uniq.com.au | do at work Dad?
PO Box 70 Paddington NSW Australia 2021            | Miss 6: He just
tel:0409-458-580     fax:02-9380-6416              | types random stuff.

>Date: Sun, 11 Oct 2009 13:59:43 +0600
>Subject: dhcp with only static leases
>From: Sergey Ivanov <public at svlp.net>
>Hello, I need dhcp configuration which serves ONLY static leases, it
>should not respond to any unknown client.
>Please see config below, is it correct config?  gateway has address
>ignore client-updates;
>ddns-update-style interim;
>ddns-updates off;
>boot-unknown-clients off;
>max-lease-time 100000;
>default-lease-time 84600;
>option routers;
>option domain-name-servers;
>option subnet-mask    ;
>subnet netmask {
>    pool {
>        range;
>        deny unknown-clients;
>        host n192_168_224_77 {
>                hardware ethernet 00:50:56:c0:00:01;
>                fixed-address;
>        }
>    }
>Thank you for reply
>dhcp-users mailing list
>dhcp-users at lists.isc.org

More information about the dhcp-users mailing list