Lease Database - Red Hat ENTERPRISE LINUX 4 System Administration Manual

Hide thumbs Also See for ENTERPRISE LINUX 4:
Table of Contents

Advertisement

Chapter 23. Dynamic Host Configuration Protocol (DHCP)
time, and network configuration values for the clients. This example assigns IP addresses in the
range 192.168.1.10 and 192.168.1.100 to client systems.
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name "example.com";
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
}
Example 23.4. Range Parameter
To assign an IP address to a client based on the MAC address of the network interface card, use
the hardware ethernet parameter within a host declaration. As demonstrated in
"Static IP Address using
with the MAC address 00:A0:78:8E:9E:AA always receives the IP address 192.168.1.4.
Note that the optional parameter host-name can also be used to assign a host name to the client.
host apex {
option host-name "apex.example.com";
hardware ethernet 00:A0:78:8E:9E:AA;
fixed-address 192.168.1.4;
}
Example 23.5. Static IP Address using DHCP
Tip
The sample configuration file provided can be used as a starting point and custom
configuration options can be added to it. To copy it to the proper location, use the
following command:
cp /usr/share/doc/dhcp-<version-number>/dhcpd.conf.sample /etc/dhcpd.conf
(where <version-number> is the DHCP version number).
For a complete list of option statements and what they do, refer to the dhcp-options man page.

23.2.2. Lease Database

On the DHCP server, the file /var/lib/dhcp/dhcpd.leases stores the DHCP client lease
database. This file should not be modified by hand. DHCP lease information for each recently
assigned IP address is automatically stored in the lease database. The information includes the length
of the lease, to whom the IP address has been assigned, the start and end dates for the lease, and the
MAC address of the network interface card that was used to retrieve the lease.
All times in the lease database are in Greenwich Mean Time (GMT), not local time.
228
DHCP", the host apex declaration specifies that the network interface card
Example 23.5,

Advertisement

Table of Contents
loading

Table of Contents