LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-30-2007, 05:47 PM   #1
archer007
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 192.168.9.9 and a subnet of 255.255.255.0 . Then, I configured Webmin to use eth0 and eth1 under "Edit Network Interface".

I configured the subnet as follows:

Network Address: 192.168.9.9
Address Ranges: 192.168.1.5 - 192.168.1.5
Netmask: 255.255.255.0

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

Subnet Mask: 255.255.255.0
Default Routers: 192.168.9.9

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:

Code:
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:

Code:
#
# Sample configuration file for ISC dhcpd for Debian
#
# $Id: dhcpd.conf,v 1.1.1.1 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
authoritative;

# 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 10.152.187.0 netmask 255.255.255.0 {
#}

# This is a very basic subnet declaration.

#subnet 10.254.239.0 netmask 255.255.255.224 {
#  range 10.254.239.10 10.254.239.20;
#  option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
#}

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

#subnet 10.254.239.32 netmask 255.255.255.224 {
#  range dynamic-bootp 10.254.239.40 10.254.239.60;
#  option broadcast-address 10.254.239.31;
#  option routers rtr-239-32-1.example.org;
#}

# A slightly different configuration for an internal subnet.
#subnet 10.5.5.0 netmask 255.255.255.224 {
#  range 10.5.5.26 10.5.5.30;
#  option domain-name-servers ns1.internal.example.org;
#  option domain-name "internal.example.org";
#  option routers 10.5.5.1;
#  option broadcast-address 10.5.5.31;
#  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 "toccata.fugue.com";
#}

# 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 fantasia.fugue.com;
#}

# 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 10.17.224.0 netmask 255.255.255.0 {
#    option routers rtr-224.example.org;
#  }
#  subnet 10.0.29.0 netmask 255.255.255.0 {
#    option routers rtr-29.example.org;
#  }
#  pool {
#    allow members of "foo";
#    range 10.17.224.10 10.17.224.250;
#  }
#  pool {
#    deny members of "foo";
#    range 10.0.29.10 10.0.29.230;
#	}
#}
# Primary Submet
subnet 192.168.9.9 netmask 255.255.255.0 {
	option subnet-mask 255.255.255.0;
	option routers 192.168.9.9;
	range 192.168.1.5 192.168.1.50;
	}
Am I doing something wrong?
 
Old 08-01-2007, 05:44 AM   #2
sussane
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..
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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