Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General > Member Success Stories
User Name
Password Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.


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

Rep: Reputation: 0
Cool 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 09-07-2006, 10:28 AM   #2
LQ Newbie
Registered: Aug 2006
Posts: 8

Rep: Reputation: 0

I want use tcpdump source in linux FC5 but I can't compile it, it has some error with "gcc -lpcap tcpdump.c" .
can you help me?
Old 10-23-2006, 06:31 AM   #3
LQ Newbie
Registered: Sep 2006
Posts: 2

Rep: Reputation: 0
Starting DHCP server ... no configuration file found on OES SUSE LINUX 9.0
Old 10-23-2006, 06:39 AM   #4
LQ Newbie
Registered: Sep 2006
Posts: 2

Rep: Reputation: 0
hi all,

i am using Yast to configure my dhcp. It is not loading. Error display as " host name cannot be found"

Actually i am Installing LTSP on my Sever. All of the requirements of LTSP 4.2 is ruuning except dhcpd.

please help.



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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Start DHCPd and configure iptables on boot (Debian Sarge) Qis Linux - Networking 6 03-02-2005 05:34 AM
Configure dhcpd (Configure DHCP Server) hanserver2004 General 1 08-16-2004 01:39 PM
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 > Linux Forums > Linux - General > Member Success Stories

All times are GMT -5. The time now is 10:34 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