Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Non-*NIX Forums > General
User Name
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!


Closed Thread
  Search this Thread
Old 08-16-2004, 11:33 AM   #1
LQ Newbie
Registered: Jun 2004
Location: Singapore
Posts: 1

Rep: Reputation: 0
Configure dhcpd (Configure DHCP Server)

Hi guys..

I'm new here and greeting to all of u here. I'm a newbie in linux and I hope to learn new things here and hopefully i can contribute to this great team as well and learn new stuffs together.. I hope this guide will help newbie get an idea on the quick start guide to configure DHCP server.. hope it helps.. If there's improvement on this guide, I'd love to hear from you guys too.. Thanks....

Logon as “root” and enter your password…

Download dhcpd from:

Unpack it

tar -zxvf dhcp-3.0.1.tar.gz
cd dhcp-3.0.1

After you do cd into the unpacked directory “dhcp-3.0.1” and type:


It will take some time to configure the settings. After it is done type:

make install

Pre-installation and Kernel setup…

Before you do an install, or configuration for DHCP you need the following kernel options installed.

1. TCP/IP networking enabled
2. MULTICAST enabled - To check to see if MULTICAST is enabled, type "ifconfig -a". You should see "MULTICAST" listed in your outputs for your ethernet devices.

If you need to re-compile your kernel, follow the instructions on the section or the howto on the kernel. If you make the CONFIG_PACKET and CONFIG_FILTER options modular, you will need to add lines in your /etc/rc.d/rc.local file to load these two modules.

Edit /etc/rc.d/rc.local and add two line:


Create “dhcpd.conf” file…

Create and edit /etc/dhcpd.conf

ddns-update-style interim;
ignore client-updates;

subnet netmask {

# --- default gateway
option routers;
option subnet-mask;

option nis-domain "whitebox";
option domain-name "whitebox";
option domain-name-servers,;

# If you specify a WINS server for your Windows clients,
# you need to include the following option in the dhcpd.conf file:

option netbios-name-servers;

option time-offset -18000; # Eastern Standard Time
# option ntp-servers;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp;
default-lease-time 86400;
max-lease-time 86400;

# we want the nameserver to appear at a fixed address
host ns {
next-server whitebox;
hardware ethernet 12:34:56:78:AB:CD;

Starting the server…

In most cases the DHCP installation doesn't create a "dhcpd.leases" file. Before you start the server, you must create an empty file:

touch /var/lib/dhcp/dhcpd.leases

Use the redhat-config-services tool or the service command with the start, restart, and stop options. The following example starts the DHCP server. Use the stop option to shut it down, and restart will restart it.

service dhcpd start

This will start dhcpd on eth0 device. If you need to start it on another device, simply supply it on the command line as shown below:

/usr/sbin/dhcpd eth1

If you wish to test the configuration for any oddities, you can start dhcpd with the debugging mode. Typing the command below will allow you to see exactly what is going on with the server.

/usr/sbin/dhcpd -d -f

u're all set for ur DHCP server....
Old 08-16-2004, 01:39 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
guides and suggesions are always very welcome, but as this is also posted in the Success Stories forum, i will close this cop, so any feedback can be posted in the correct location. Cheers

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure dhcpd (Configure DHCP Server) hanserver2004 Member Success Stories 3 10-23-2006 06:39 AM
Start DHCPd and configure iptables on boot (Debian Sarge) Qis Linux - Networking 6 03-02-2005 05:34 AM
router box - unable to configure DHCP server BrianNJ Linux - Networking 1 06-09-2004 07:11 AM
How to configure DHCP client at server /etc/hosts ? x2000koh Linux - Networking 1 08-06-2003 03:02 AM
How to Configure DHCP Server in SuSE 7.1? rdkoli Linux - Networking 1 06-18-2001 12:55 AM > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 07:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration