static entries vs leases

Glenn Satchell Glenn.Satchell at uniq.com.au
Mon Jul 24 12:11:15 UTC 2006


>Date: Mon, 24 Jul 2006 11:47:44 +0200
>From: "Thomas Zenz" <Thomas.Zenz at oenb.at>
>To: <dhcp-users at isc.org>
>Subject: static entries vs leases
>
>Hey 
>
>We use a File with static entries for our Printers:
>
>e.g:
>host ANP643_1
>{
>        hardware ethernet 00:14:38:a4:bd:88;
>        fixed-address 10.110.6.43;
>        option host-name "ANP643";
>        ddns-hostname "ANP643";
>        ddns-domainname "ad.oenb.co.at";
>        update-static-leases true;
>}
>
>host ANP643_2
>{
>        hardware ethernet 00:14:38:a4:bd:88;
>        fixed-address 10.210.6.43;
>        option host-name "ANP643";
>        ddns-hostname "ANP643";
>        ddns-domainname "ad.oenb.co.at";
>        update-static-leases true;
>}
>
>We use two entries, because, the Printer can be in two different
>Locataions and so in two different IP Subnets.
>
>Since we upgraded to 3.0.4r1 the Printer get's a dynamic address even
>there is a static.
>
>Jul 24 10:32:25 anlpn35 dhcpd: DHCPDISCOVER from 00:14:38:a4:bd:88 via
>10.210.0.1
>Jul 24 10:32:26 anlpn35 dhcpd: DHCPOFFER on 10.210.109.244 to
>00:14:38:a4:bd:88 (NPIA4BD88) via 10.210.0.1
>Jul 24 10:32:31 anlpn35 dhcpd: DHCPREQUEST for 10.210.109.244
>(10.115.221.35) from 00:14:38:a4:bd:88 (NPIA4BD88) via 10.210.0.1
>Jul 24 10:32:31 anlpn35 dhcpd: DHCPACK on 10.210.109.244 to
>00:14:38:a4:bd:88 (NPIA4BD88) via 10.210.0.1
---8<--- snip

dhcpd will only use the assigned fixed-address if it would be valid for
the subnet that the printer is located on. In this case dhcpd thinks
otherwise, so ignores the statements in the host statement.

We need to see a bit more of your configuration file(s) to understand
what is going on. For example, you have two host entries with identical
contents - is this a slip of the cut and paste, or how it really is?
What is(are) the subnet definition(s) that contains 10.210.0.1,
10.210.109.244 and 10.210.6.43? Is it one big subnet, eg 10.210.0.0/16 ?

Remember host statements are in the global scope, so putting them
inside a subnet declaration does not automatically make them valid for
that subnet.

What version were you previously running that worked?

regards,
-glenn

>Is there a new configuration option?
>
>Parts from the config File:
>
>one-lease-per-client true;               
>deny duplicates;                              
>
>did not help.
>
>
>Please help
>Kind Regard
>Tom
>



More information about the dhcp-users mailing list