Data Networking/Spring 2015/GROUP4/DHCP-SERVER

Configure network interface file edit

To change the IP address of DHCP server to static,interface file should be edited.

sudo gedit /etc/dhcp/dhcpd.conf

add these lines to it

auto eth0
iface eth0 inet static

address 192.168.5.5
netmask 255.255.255.0
gateway 192.168.5.1
network 192.168.5.0
broadcast 192.168.5.255

Install DHCP server edit

sudo apt-get install isc-dhcp-server

Edit the configuration file edit

sudo gedit /etc/dhcp/dhcpd.conf

Add these lines into it.

default-lease-time 600;
max-lease-time 7200;

option subnet-mask 255.255.255.0;
option broadcast-address 192.168.5.255;
option routers 192.168.5.1;
option domain-name-servers 192.168.5.6;
option domain-name "mvrs.com";

subnet 192.168.5.0 netmask 255.255.255.0 {
range 192.168.5.15 192.168.5.40;
}


Restart the services edit

sudo isc-dhcp-server start
or  
sudo isc-dhcp-server restart