Ubuntu Unleashed 2019 Edition: Covering 18.04, 18.10, 19.04

(singke) #1

(www.isc.org) and download and build the source code yourself. However,
we recommend that you stay with the package in the Ubuntu repositories
because it will be easy to update if there are security updates.


If you decide to install from a source downloaded from the ISC website, the
installation is straightforward. Just unpack your tar file, run
./configure from the root of the source directory, run make, and finally,
if there are no errors, run make install. This puts all the files used by the
DHCP daemon in the correct places. If you have the disk space, it is best to
leave the source files in place until you are sure that DHCP is running
correctly; otherwise, you might delete the source tree.


NOTE
For whichever installation method you choose, be sure that a file called
/etc/dhcp3 /dhcpd.leases is created. The file can be empty, but it
does need to exist for dhcpd to start properly.

Using DHCP to Configure Network Hosts


Configuring your network with DHCP can look difficult but is actually easy if
your needs are simple. The server configuration can take a bit of work
depending on the complexity of your network is more complex and how
much you want DHCP to do.


Configuring the server takes some thought and a little bit of work. Luckily,
the work involves editing only a single configuration file,
/etc/dhcp3/dhcpd.conf. To start the server at boot time, use the
service or ntsysv command.


The /etc/dhcp3/dhcpd.conf file contains all the information needed
to run dhcpd. Ubuntu includes a sample dhcpd.conf file in
/usr/share/doc/dhcp*/dhcpd.conf.sample. The DHCP server
source files also contain a sample dhcpd.conf file.


You can think of the /etc/dhcp3/dhcpd.conf file at as a three-part file.
The first part contains the following configurations for DHCP itself:


Setting the domain  name—option domain-name
“example.org”
Setting DNS servers—option domain-name-servers
ns1.example.org and ns2.example.org (IP addresses can be
substituted.)
Free download pdf