Install DHCP Server in Ubuntu 16
Install DHCP Server in Ubuntu 16
Install DHCP Server in Ubuntu 16
04 - OSTechNix
Home
Open Source
Technology
Linux
Unix
Download Free Videos and EBooks
Backup tools
Cloud
Database
Directory servers
Mobile
Reviews
Security
Tips and Tricks
Trouble shooting
Virtualization
Server in
Ubuntu 16.04
BY SK · AUGUST 4, 2016
Install
How To Migrate System Settings And
DHCP Data From Old System To Newly Installed
Ubuntu System
Server in
How To Find And Delete Files Older Than
Ubuntu X Days In Linux
https://www.ostechnix.com/install-dhcp-server-in-ubuntu-16-04/ 2/17
12/6/2016 Install DHCP Server in Ubuntu 16.04 - OSTechNix
My DHCP Server:
OS – Ubuntu 16.04
LTS 64 bit
IP Address –
192.168.1.105/24
Hostname –
ubuntuserver.ostechnix.lan
sudo aptget
install isc
dhcpserver
Configure
DHCP
Free eBook: "The Network Security Test Lab: A Step-by-Step Guide ($40 Value)
https://www.ostechnix.com/install-dhcp-server-in-ubuntu-16-04/ 3/17
12/6/2016 Install DHCP Server in Ubuntu 16.04 - OSTechNix
server
The default
configuration file of
DHCP server
is /etc/default/isc-
dhcp-server. We need
to edit and modify it as
per our requirements.
To do so, edit
/etc/default/isc-dhcp-
server configuration
file:
sudo vi
/etc/default/
iscdhcp
server
https://www.ostechnix.com/install-dhcp-server-in-ubuntu-16-04/ 4/17
12/6/2016 Install DHCP Server in Ubuntu 16.04 - OSTechNix
[...]
INTERFACES="e
np0s3"
sudo vi
/etc/dhcp/dhc
pd.conf
Modify it as shown
below. Replace the
domain name with your
own values.
[...]
"The Network Security Test Lab: A Step-by-Step Guide ($40 Value)
Free eBook:
# option
https://www.ostechnix.com/install-dhcp-server-in-ubuntu-16-04/ 5/17
12/6/2016 Install DHCP Server in Ubuntu 16.04 - OSTechNix
definitions
common to all
supported
networks...
option
domainname
"ostechnix.la
n";
option
domainname
servers
ubuntuserver.
ostechnix.lan
;
[...]
[...]
authoritative
;
[...]
Free eBook: "The Network Security Test Lab: A Step-by-Step Guide ($40 Value)
https://www.ostechnix.com/install-dhcp-server-in-ubuntu-16-04/ 6/17
12/6/2016 Install DHCP Server in Ubuntu 16.04 - OSTechNix
[...]
# A slightly
different
configuration
for an
internal
subnet.
subnet
192.168.1.0
netmask
255.255.255.0
{
range
192.168.1.20
192.168.1.30;
option
domainname
servers
ubuntuserver.
ostechnix.lan
;
option
domainname
"ostechnix.la
n";
option
routers
192.168.1.1;
option
Free eBook: "The Network Security Test Lab: A Step-by-Step Guide ($40 Value)
broadcast
https://www.ostechnix.com/install-dhcp-server-in-ubuntu-16-04/ 7/17
12/6/2016 Install DHCP Server in Ubuntu 16.04 - OSTechNix
address
192.168.1.255
;
default
leasetime
600;
maxlease
time 7200;
}
[...]
https://www.ostechnix.com/install-dhcp-server-in-ubuntu-16-04/ 8/17
12/6/2016 Install DHCP Server in Ubuntu 16.04 - OSTechNix
192.168.1.160 to client
that has MAC
id 00:22:64:4f:e9:3a. To
find out the IP ann MAC
addresses, use ‘ifcon g’
command.
ifconfig
Sample output:
[...]
host ubuntu
client {
hardware
ethernet
08:00:27:13:1
4:d5;
fixed
address
192.168.1.160
;
} "The Network Security Test Lab: A Step-by-Step Guide ($40 Value)
Free eBook:
[...]
https://www.ostechnix.com/install-dhcp-server-in-ubuntu-16-04/ 9/17
12/6/2016 Install DHCP Server in Ubuntu 16.04 - OSTechNix
sudo
systemctl
restart isc
dhcpserver
sudo
Free eBook: "The Network Security Test Lab: A Step-by-Step Guide ($40 Value)
systemctl
https://www.ostechnix.com/install-dhcp-server-in-ubuntu-16-04/ 10/17
12/6/2016 Install DHCP Server in Ubuntu 16.04 - OSTechNix
status isc
dhcpserver
Sample output:
sudo
systemctl
start isc
dhcpserver
sudo
systemctl
stop isc
dhcpserver
Free eBook: "The Network Security Test Lab: A Step-by-Step Guide ($40 Value)
https://www.ostechnix.com/install-dhcp-server-in-ubuntu-16-04/ 11/17
12/6/2016 Install DHCP Server in Ubuntu 16.04 - OSTechNix
Configure
DHCP
Clients
For the purpose of this
tutorial, I will be using
Ubuntu 16.04 LTS
desktop as my DHCP
client.
My DHCP client:
OS – Ubuntu 16.04
LTS desktop
IP Address – DHCP
enabled
Open Network
Connections either from
Unity dash or Menu.
In the Network
connections window,
Select your Ethernet
card and click Edit.
Free eBook: "The Network Security Test Lab: A Step-by-Step Guide ($40 Value)
https://www.ostechnix.com/install-dhcp-server-in-ubuntu-16-04/ 12/17
12/6/2016 Install DHCP Server in Ubuntu 16.04 - OSTechNix
ifconfig
Sample output:
Free eBook: "The Network Security Test Lab: A Step-by-Step Guide ($40 Value)
https://www.ostechnix.com/install-dhcp-server-in-ubuntu-16-04/ 13/17
12/6/2016 Install DHCP Server in Ubuntu 16.04 - OSTechNix
Congratulations! DHCP
server is working!!
Cheers!
Free eBook: "The Network Security Test Lab: A Step-by-Step Guide ($40 Value)
https://www.ostechnix.com/install-dhcp-server-in-ubuntu-16-04/ 14/17
12/6/2016 Install DHCP Server in Ubuntu 16.04 - OSTechNix
Share this:
Reddit Twitter
Facebook 2
LinkedIn 2
Pocket Email
PREVIOUS NEXT
STORY STORY
How to How to
prevent a monitor
package DHCP
from being server
automatically usage
installed,
upgraded
or
removed
in Ubuntu
How to How to
install monitor
PXE DHCP
Server server
on usage
Ubuntu AUGUST 5,
16.04 2016
Free eBook: "The Network Security Test Lab: A Step-by-Step Guide ($40 Value)
https://www.ostechnix.com/install-dhcp-server-in-ubuntu-16-04/ 15/17
12/6/2016 Install DHCP Server in Ubuntu 16.04 - OSTechNix
AUGUST 8,
2016
Free eBook: "The Network Security Test Lab: A Step-by-Step Guide ($40 Value)
https://www.ostechnix.com/install-dhcp-server-in-ubuntu-16-04/ 16/17
12/6/2016 Install DHCP Server in Ubuntu 16.04 - OSTechNix
OSTechNix © 2016. All Rights Reserved.
This site is licensed under CC BY-NC 4.0.
Free eBook: "The Network Security Test Lab: A Step-by-Step Guide ($40 Value)
https://www.ostechnix.com/install-dhcp-server-in-ubuntu-16-04/ 17/17