Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-07-2010, 01:40 AM   #1
Registered: Aug 2005
Distribution: Debian Stable
Posts: 190

Rep: Reputation: 17
I cannot get DHCP3-Server to work under ubuntu 9.10

I've never had this much trouble, but maybe it's because I have not setup a dhcp3-server in some time.

My server has three NIC cards. The Internet connection is on eth2, and I'm trying to get connect other computers to the server through eth0.

It's suppose to be relatively easy, unless I'm assigning specifics, right?

# Sample configuration file for ISC dhcpd for Debian
# Attention: If /etc/ltsp/dhcpd.conf exists, that will be used as
# configuration file instead of this file.
# $Id: dhcpd.conf,v 2002/05/21 00:07:44 peloy Exp $

# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;

# option definitions common to all supported networks...
option domain-name "";
option domain-name-servers,;

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

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.

# 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 {
#option routers,;
Here is the problem:
$ /etc/init.d/dhcp3-server restart
 * Stopping DHCP server dhcpd3                                           [fail] 
 * Starting DHCP server dhcpd3                                                   * check syslog for diagnostics.
Here is a detailed account:
# tail -f /var/log/syslog
Jan  7 00:38:57 universe dhcpd: Wrote 0 leases to leases file.
Jan  7 00:38:57 universe dhcpd: 
Jan  7 00:38:57 universe dhcpd: No subnet declaration for eth0 (
Jan  7 00:38:57 universe dhcpd: ** Ignoring requests on eth0.  If this is not what
Jan  7 00:38:57 universe dhcpd:    you want, please write a subnet declaration
Jan  7 00:38:57 universe dhcpd:    in your dhcpd.conf file for the network segment
Jan  7 00:38:57 universe dhcpd:    to which interface eth0 is attached. **
Jan  7 00:38:57 universe dhcpd: 
Jan  7 00:38:57 universe dhcpd: 
Jan  7 00:38:57 universe dhcpd: Not configured to listen on any interfaces!
I have looked and looked. I don't know what this subnet declaration for eth0 stuff is. I've never encountered it before.

Both network devices on both computers are up.

This is what I have for /etc/network/interfaces on the server:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static

Last edited by Cyberman; 01-07-2010 at 01:43 AM.
Old 01-07-2010, 02:59 AM   #2
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1286Reputation: 1286Reputation: 1286Reputation: 1286Reputation: 1286Reputation: 1286Reputation: 1286Reputation: 1286Reputation: 1286
It's been a while since I set up my dhcp server too, so can't remember the specifics. However looking at my config file, I wonder if you need: "option subnet-mask" inside your "subnet" block.



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
Dhcp3 configuration for XEN server globemast Linux - Virtualization and Cloud 6 10-22-2009 02:57 AM
debian etch dhcp3 server problem after upgrade rotezecke Linux - Newbie 14 12-16-2008 09:47 PM
Ubuntu 8.04 Server + DHCP3-Server hardcorgenie Linux - Server 2 06-04-2008 01:03 PM
DHCP3-SERVER on Debian making some noise!! dutche Linux - Networking 0 08-11-2006 03:42 PM
dhcp3 server config geden Debian 1 03-17-2006 09:31 PM

All times are GMT -5. The time now is 11:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration