Pages

Thursday, November 15, 2012

How To Install And Configure A DHCP Server In Ubuntu 12.10 Server (Quantal Quetzal)



In this tutorial, we will help you set up and configure a DHCP server in Ubuntu 12.10 (Quantal Quetzal) server. This little guide is also workable for Ubuntu 12.04 Server (Precise Pangolin).



Getting Started

   1. Installing The DHCP Server

To install the DHCP server, run this command:

sudo apt-get install isc-dhcp-server

   2. Configuration

Let's now enable the DHCP server for your network interface by editing the /etc/default/isc-dhcp-server file:

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

In this file, locate INTERFACES="" and add your network interface (eth0 for example):

INTERFACES="eth0"



For multiple network interfaces, you may add them as follows:

INTERFACES="wlan0 eth0"

When you finish, press CTRL+X, type Y (yes) and press Enter to save the new modifications. Finally, restart the DHCP server with this command:

sudo service isc-dhcp-server restart

No comments:

Post a Comment