David Nicoson wrote:
> On Jan 31, 2:28 pm, Joe Beanfish <j...@nospam.duh> wrote:
>> Even after having been turned off?
>
> A well-behaved server (e.g, ISC) will remember the IP it last gave the
> client and offer it again unless its run out of free addresses and
> assigned it to another host.
>
> You're describing "automatic allocation" as defined in the RFC:
>
> DHCP supports three mechanisms for IP address allocation. In
> "automatic allocation", DHCP assigns a permanent IP address to a
> client.
>
> In the server settings, set your leases to something long (or
> infinite, if you're *really* sure this is what you want) and make your
> pool of addresses big.
>
You can also set IP address allocation based on MAC address. In dhcpd.conf, you include a section like
#
# establish fixed addresses for the computers that previously
# had hard-coded IP addresses. If an ethernet card is changed, the
# machine will receive an address from the dynamic range until the
# new ethernet address has been entered below. The lease time for these
# machines is much longer.
#
group {
option subnet-mask 255.255.255.0;
option broadcast-address 10.10.10.255;
max-lease-time 100000;
#
host printer_1 {
hardware ethernet 00:01:E6:01:52

8;
fixed-address 10.10.10.3;
}
.......
}
There should be a host block for every address you want to be fixed.
Larry