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 192.168.254.100;

subnet 192.168.254.0 netmask 255.255.255.0 {
	option routers 192.168.254.100;
}

host n192_168_224_77 {
	hardware ethernet 00:50:56:c0:00:01;
	fixed-address 192.168.254.77;
}

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
definition.

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

regards,
-glenn
--
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
>192.168.254.200.
>
>ignore client-updates;
>ddns-update-style interim;
>ddns-updates off;
>boot-unknown-clients off;
>
>max-lease-time 100000;
>default-lease-time 84600;
>
>option routers 192.168.254.100;
>option domain-name-servers 192.168.254.100;
>option subnet-mask              255.255.255.0;
>
>subnet 192.168.254.0 netmask 255.255.255.0 {
>    pool {
>        range 192.168.254.100 192.168.254.100;
>        deny unknown-clients;
>        host n192_168_224_77 {
>                hardware ethernet 00:50:56:c0:00:01;
>                fixed-address 192.168.254.77;
>        }
>    }
>}
>
>Thank you for reply
>_______________________________________________
>dhcp-users mailing list
>dhcp-users at lists.isc.org
>https://lists.isc.org/mailman/listinfo/dhcp-users




More information about the dhcp-users mailing list