Install DHCP on Ubuntu server

Installation process is simple and easy, but process of administration of DHCP server can be very hard when you doing this over text editor. I admit it can be tiresome, but there are some web solutions you can use to avoid this issue. To install DHCP and basically configure it  you need no more than few minutes.

First step is to update/upgrade Ubuntu server:

 sudo apt-get update

sudo apt-get upgrade

Now you can proceed with installation. Type following:

sudo apt-get install isc-dhcp-server

You will receive notification shown on slide 1.

Install DHCP on Ubuntu server

Slide 1.

To select interface on which DHCP server should listen requests  go to following location:

sudo nano /etc/default/isc-dhcp-server

Change settings as I did:

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. “eth0 eth1″.
INTERFACES=”eth0

In order to configure DHCP go to  following location:

sudo nano /etc/dhcp/dhcpd.conf

All configuration parameters should be done here.

Now you can see that configuring DHCP on Linux using test editor can be tiresome. Fortunately there are some alternatives, like Webmin, web-based interface for Linux system administration. Sure I will make some tutorials for this tool.

That`s it, keep an eye on www.it-tutorials.net as we will continue with more tutorials . On our website you will find a lot of tips and tricks for any IT field !

 

Dejan Dzodan

Dejan Dzodan

IT professional for more then 15 years, mostly in financial institutions but with experience in ISP and retail. Proven in networking and overall infrastructure projects. Cisco instructor.

Leave a Reply

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


5 + 8 =