How to Install and Configure DHCP Server on Debian 10

How to Install and Configure DHCP Server on Debian 10 (Buster). Dynamic Host Configuration Protocol (DHCP) is a protocol based on client / server architecture that is used to facilitate the allocation of IP addresses in one network. A local network that does not use DHCP must give IP addresses to all computers manually.

In most ordinary people don’t want to be complicated for most settings like this. but in it must sometimes be considered in giving ip addresses to users. Now on Debian 10 this server provides DHCP Server swith the package name “isc-dhcp-server”. Similarly, the settings are not so difficult and also fast configuration. Maybe that’s just a little explanation directly to the steps to install and configure:

1. Install the application package

Install the application package that is uses for the server service, that is, we type the command “apt-get install isc-dhcp-server” then press “Y” to approve or allow us to install the package.

root@idnetworks:~#apt-get install isc-dhcp-server

The 2 st, if a red “error” notification appears like the picture below, don’t panic yet. It’s just that the dhcp-server service hasn’t been configured yet.

The 3 st, do the service settings in debian 10 with the command:

root@idnetworks:~#nano /etc/dhcp/dhcpd.conf

then press “enter” and look for the “A slightly different configuration for …” line and then remove the enclosed hedge until yes brackets {} like the following image:

Code information setup :

  • Subnet is the net address of our network ID (LAN) and netmask in accordance with the interface that we use (enp0s3). You can open this article before how to configure ip static on debian 10.
  • Range is the IP address that will be give to the client, also note the semicolon (;).
  • Domain-name-servers are DNS server addresses that would be uses by clients, if we add more than one DNS address (,)
  • Domain-name is a LAN network domain or commonly called your DNS server.
  • Routers are IP gateways for clients: IP gateways are IP routers (enp0s3) by default. # Broadcast-address is the broadcast address of our network.
  • Don’t forget to remove the pager so the script can be execute

The 4st, setting the default interface that is also used to share DHCP to the client or user on the Debian 10 server. You can typing the command:

root@idnetworks:~#nano /etc/default/isc-dhcp-server

then remove the fence mark in rows 4 and 17 and then fill in the interface name in row 17 according to the interface we use.

The fifth step, after we have finished the configuration above, do the restart service to our dhcp server so that it runs properly and type the command as follows:

root@idnetworks:~#/etc/init.d/isc-dhcp-server restart root@idnetworks:~#/etc/init.d/isc-dhcp-server status

The sixth step, testing on Windows and Linux clients, can I get ip dhcp from our server Debian 10 ???

Most people are lazy to configure the IP address on their computer manually. For this reason, DHCP protocol have create that can facilitate the distribution of ip addresses automatically. This can help us not bother for manual settings, but sometimes if it’s easy there is also a risk of being vulnerable to people who use it poorly.

And here that is our basic tutorial to setup dhcp server for your debian operation system. If it is useful then share and subscribe to our channel. Thank you everyone

Leave a Reply

Your email address will not be published. Required fields are marked *