No subject


Fri Feb 17 00:23:59 UTC 2012


host abc{

hardware-type Ethernet MAC-Address;
fixed address 192.168.144.150;
options.....
} 

So when a request comes from the client server tries to lease out 192.168.144.150 address. If it is not bound then it leases out.And updates the lease file with the given information.

Say if an IP address(192.168.144.150)  is leased out to another client then server will bound another free IP address from the same pool 10-239 to the client.
So in this is the case of only dynamic and not static. But in above situation it was both. So server mention as dynamic and static.

To be more specific, you can't declare an IP address in side a pool which is static to a particular client.
To achieve this functionality you have to exclude the IP address from all the range declaration.
For ex:
        pool {
                range 192.168.144.10 192.168.144.149;
                range 192.168.144.151 192.168.144.229;
                deny unknown- clients;
                max- lease- time 86400;
                default- lease- time 43200;
                include "/etc/dhcp3/knownhosts.conf";
        }

In this case 192.168.144.150 will always be lease out to above host declaration only.


Thanks, Rohit





>>> "Roberto Meyer" <roberto.s.meyer at gmail.com> 02/02/07 4:52 AM >>> 
Hi,

I found the following message in my syslog:

Feb  1 19:00:13 isidorito dhcpd: Dynamic and static leases present for
192.168.144.150.
Feb  1 19:00:13 isidorito dhcpd: from the dynamic address pool for
192.168.144.0/24

I don't have trouble with IP allocation, but I wondered myself what
does this message means. That IP is a static one, I can't find it in
my dynamic range.

Part of my setup:
...
max- lease- time 86400;
default- lease- time 43200;

subnet 192.168.144.0 netmask 255.255.255.0 {

        # KNOWN clients
        pool {
                range 192.168.144.10 192.168.144.229;
                deny unknown- clients;
                max- lease- time 86400;
                default- lease- time 43200;
                include "/etc/dhcp3/knownhosts.conf";
        }

        # UNKNOWN clients
        pool {
                range 192.168.144.230 192.168.144.239;
                allow unknown- clients;
                max- lease- time 42000;
                default- lease- time 21000;
        }
}


I've setup static IP addresses in "knownhosts.conf"

Any help would be very appreciated, TIA,

--
Roberto




More information about the dhcp-users mailing list