Setup DHCP Server on Ubuntu 13.10


1.Install DHCP server package

sudo apt-get install isc-dhcp-server

2.Editing file /etc/default/isc-dhcp-server

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

Change this line to:

INTERFACES=”eth0″

Save and exit

3.Editing file /etc/dhcp/dhcpd.conf

Create backup /etc/dhcp/dhcpd.conf

sudo mv /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.org

Create configuration file dhcpd.conf:

vim  /etc/dhcp/dhcpd.conf 

Add these lines:

option domain-name “example.com”;

option domain-name-servers 212.14.253.242, 8.8.8.8;

default-lease-time 600;

max-lease-time 7200;

subnet 10.96.70.0 netmask 255.255.254.0 {

range 10.96.71.10 10.96.71.35;

option domain-name-servers 212.14.253.242, 8.8.8.8;

option domain-name “server. example.com”;

option routers 10.96.71.2;

option broadcast-address 10.96.71.255;

default-lease-time 600;

max-lease-time 7200;

}

4.restart dhcp server

sudo service isc-dhcp-server restart

About these ads

One thought on “Setup DHCP Server on Ubuntu 13.10

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s