Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-30-2007, 05:47 PM   #1
LQ Newbie
Registered: Feb 2006
Distribution: Ubuntu 9.04
Posts: 7

Rep: Reputation: 0
Webmin ISC DHCPd 3.0.4 server not working

OS: Ubuntu Ultimate Edition 1.3

I want to have my Ubuntu desktop act as a DHCP server for my XP laptop, and get an ad-hoc LAN going.

I have configured my two wired Ethernet interfaces, eth0 and eth1, to have a static IP address of and a subnet of . Then, I configured Webmin to use eth0 and eth1 under "Edit Network Interface".

I configured the subnet as follows:

Network Address:
Address Ranges: -

Then, I clicked "Edit Client Options" and set the following:

Subnet Mask:
Default Routers:

I saved the subnet and went back to the main screen. Then, as recommended, I clicked Edit Client Options and switched "Dynamic DNS Update Style" to "None"

Then, I attempted to start the DHCP server, and got the following error:

dhcpd self-test failed. Please fix the config file.
The error was:
No error type or code was displayed, so I have no idea what is wrong.
Here's the config file:

# Sample configuration file for ISC dhcpd for Debian
# $Id: dhcpd.conf,v 2002/05/21 00:07:44 peloy Exp $

# The ddns-updates-style parameter controls whether or not the server will
ddns-update-style none;

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

# If this DHCP server is the official DHCP server for the local

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

# No service will be given on this subnet, but declaring it helps the 
# DHCP server to understand the network topology.

#subnet netmask {

# This is a very basic subnet declaration.

#subnet netmask {
#  range;
#  option routers,;

# This declaration allows BOOTP clients to get dynamic addresses,
# which we don't really recommend.

#subnet netmask {
#  range dynamic-bootp;
#  option broadcast-address;
#  option routers;

# A slightly different configuration for an internal subnet.
#subnet netmask {
#  range;
#  option domain-name-servers;
#  option domain-name "";
#  option routers;
#  option broadcast-address;
#  default-lease-time 600;
#  max-lease-time 7200;

# Hosts which require special configuration options can be listed in
# host statements.   If no address is specified, the address will be
# allocated dynamically (if possible), but the host-specific information
# will still come from the host declaration.

#host passacaglia {
#  hardware ethernet 0:0:c0:5d:bd:95;
#  filename "vmunix.passacaglia";
#  server-name "";

# Fixed IP addresses can also be specified for hosts.   These addresses
# should not also be listed as being available for dynamic assignment.
# Hosts for which fixed IP addresses have been specified can boot using
# BOOTP or DHCP.   Hosts for which no fixed address is specified can only
# be booted with DHCP, unless there is an address range on the subnet
# to which a BOOTP client is connected which has the dynamic-bootp flag
# set.
#host fantasia {
#  hardware ethernet 08:00:07:26:c0:a5;
#  fixed-address;

# You can declare a class of clients and then do address allocation
# based on that.   The example below shows a case where all clients
# in a certain class get addresses on the 10.17.224/24 subnet, and all
# other clients get addresses on the 10.0.29/24 subnet.

#class "foo" {
#  match if substring (option vendor-class-identifier, 0, 4) = "SUNW";

#shared-network 224-29 {
#  subnet netmask {
#    option routers;
#  }
#  subnet netmask {
#    option routers;
#  }
#  pool {
#    allow members of "foo";
#    range;
#  }
#  pool {
#    deny members of "foo";
#    range;
#	}
# Primary Submet
subnet netmask {
	option subnet-mask;
	option routers;
Am I doing something wrong?
Old 08-01-2007, 05:44 AM   #2
LQ Newbie
Registered: Aug 2007
Posts: 19

Rep: Reputation: 0
Please try this command from Terminal/Konsole, then you will know what's going wrong with your dhcp server

#/usr/sbin/dhcpd -d

This command will run in debug mode.. Hope this is of some help to you..


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
ISC-DHCPD v3 and agent.circuit-id wjonline Linux - Server 0 06-05-2007 10:02 AM
ISC-DHCPD on specified interface only? zivota Linux - Networking 2 02-06-2007 02:36 PM
basic DHCP install (ISC DHCPd version 3.0.1) ryedunn Linux - Networking 1 09-05-2006 07:33 PM
DDNS with BIND and ISC-DHCPD joel112 Linux - Software 1 05-25-2006 11:06 AM
Issues with Dualhome ISC DHCPD psychobyte Linux - Networking 1 11-18-2005 04:03 PM > Forums > Linux Forums > Linux - Software

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

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