Install and Setup DHCP Server on Ubuntu 14.04/Linux Mint 17

Install and Setup DHCP Server on Ubuntu/Linux Mint
DHCP Server Logo
DHCP - Each person with a fundamental know-how of computer networking knows that in order for two hosts talk on the same network that who using TCP/IP model, both hosts need to have an precise IP address. There are two ways on how a community host can gain an IP address.

One manner is to manually configure network interface and assign an IP address through hand. That is called static configuration this means that that host's IP deal with will in no way alternate until modified manually again by means of user or system administrator. If corporation's network consists of extra than a thousand hosts this process of putting in every person host with static IP address will become tiresome and extra importantly inefficient.

Every other way how to set host's IP address and that is also a method to the above trouble could be to have a few manner to automatically assign an IP address to any host at the community upon the request. This is in which DHCP ( Dynamic Host Configuration Protocol ) comes reachable.
In this article will guide you how to install and setup DHCP server on Ubuntu 14.04/Linux Mint 17

-- Install and Setup DHCP Server on Ubuntu 14.04/Linux Mint 17 --

Before installation, make sure that you have internet connection.

Step 1 » Open your terminal and and enter the following command:
• # sudo apt-get update
• # sudo apt-get install isc-dhcp-server -y 

Step 2 » After installing, open /etc/default/isc-dhcp-server file to configure the network interface:
• # sudo nano /etc/default/isc-dhcp-server
•    ......
     INTERFACES="eth0"

Step 3 » We need to define below values in dhcpd.conf file located in /etc/dhcp/ directory.
Example Scenario:
Network : 192.168.10.0/24
Range : 192.168.10.20 ( Starting IP ) – 192.168.10.75 ( Ending IP )
Gateway : 192.168.10.1
Primary DNS : 192.168.10.2
Sec DNS : 8.8.8.8

Make sure that you backup the original file before making changes it.
• # sudo cp /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.org

• # sudo nano /etc/dhcp/dhcpd.conf

and add the below code once creating changes as per your network values.

• # option definitions common to all supported networks...
default-lease-time 600;
max-lease-time 7200;
• # If this DHCP server is the official DHCP server for the local
• # network, the authoritative directive should be uncommented.
authoritative;
• # Use this to send dhcp log messages to a different log file (you also
• # have to hack syslog.conf to complete the redirection).
log-facility local7;

subnet 192.168.10.0 netmask 255.255.255.0 {  #network
range 192.168.10.20 192.168.10.75; # Range
option domain-name-servers 192.168.10.2, 8.8.8.8; #Pri DNS , Sec DNS
option domain-name "linuxinfo.com"; #Domain name
option routers 192.168.10.1; #Gateway
option broadcast-address 192.168.1.255; #Broadcast
default-lease-time 600;
max-lease-time 7200;
}

After creating all the changes you wish, save and shut the configuration file. Restart the dhcp service by using the following command:

• # sudo service isc-dhcp-server restart

That’s it. If you want to know more how to configure DHCP Server on Ubuntu/Linux Mint you can click link below:
Configure DHCP Server on Ubuntu/Linux Mint

that is all of Install and Setup DHCP Server on Ubuntu 14.04/Linux Mint 17. Hope it helps readers to know. Helpfully, if yes please shared. Thanks You

Author:

Previous
Next Post »

In your comment:
- Please be positive
- Proofread to make sure it says what you want.
- Relevant with topic

I will read your comment and will publish it, if appropriate, if published, it will be viewable by everyone ConversionConversion EmoticonEmoticon