Would you like to learn how to install a DHCP server on Ubuntu Linux? In this tutorial, we are going to show you how to configure a DHCP server using isc-dhcp-server on Ubuntu Linux version 17.

Hardware List:

The following section presents the list of equipment used to create this Ubuntu Linux tutorial.

Every piece of hardware listed above can be found at Amazon website.

Ubuntu Playlist:

On this page, we offer quick access to a list of videos related to Ubuntu Linux.

Don’t forget to subscribe to our youtube channel named FKIT.

Ubuntu Related Tutorial:

On this page, we offer quick access to a list of tutorials related to Ubuntu linux.

Tutorial – DHCP Server on Ubuntu Linux

On the Linux console, use the following commands to install the required services.

# apt-get update
# apt-get install isc-dhcp-server

Edit the configuration file of the DHCP server on Ubunut linux.

# vi /etc/dhcp/dhcpd.conf

ddns-update-style none;
option domain-name “guest.techexpert”;
option domain-name-servers 8.8.8.8, 8.8.4.4;
allow booting;
allow bootp;
default-lease-time 172800;
max-lease-time 172800;
authoritative;
log-facility local7;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.50 192.168.0.254;
option routers 192.168.0.1;
option domain-name-servers 8.8.8.8, 8.8.4.4;
}

In our example, the ISC DHCP server was configured to offer the following configuration:

IP addresses from the network 192.168.0.0/24

DNS servers: 8.8.8.8 and 8.8.4.4.

Domain name: guest.techexpert

IP address lease time: 48 Hours

To check the DHCP client addresses, use the following command:

# cat /var/lib/dhcp/dhcpd.leases

If the DHCP clients are getting the address from the 192.168.0.0/24 network, this means that you followed all the steps correctly.