Red Hat ENTERPRISE LINUX 5 - DEPLOYMENT Deployment Manual page 322

Hide thumbs Also See for ENTERPRISE LINUX 5 - DEPLOYMENT:
Table of Contents

Advertisement

Chapter 21. Dynamic Host Configuration Protocol (DHCP)
option host-name "raleigh.example.com";
hardware ethernet 00:A1:DD:74:C3:F2;
fixed-address 192.168.1.6;
}
}
Example 21.3. Group Declaration
To configure a DHCP server that leases a dynamic IP address to a system within a subnet, modify
Example 21.4, "Range Parameter"
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 21.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 21.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).
296
with your values. It declares a default lease time, maximum lease
DHCP", the host apex declaration specifies that the network interface card
Example 21.5,

Advertisement

Table of Contents
loading

Table of Contents