LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-07-2010, 12:40 AM   #1
Cyberman
Member
 
Registered: Aug 2005
Distribution: Debian Stable
Posts: 218

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?

Code:
#
# 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 1.1.1.1 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 "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;

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.
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 192.168.0.0 netmask 255.255.255.224 {
range 192.168.0.10 192.168.0.20;
#option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
}
Here is the problem:
Code:
$ /etc/init.d/dhcp3-server restart
 * Stopping DHCP server dhcpd3                                           [fail] 
 * Starting DHCP server dhcpd3                                                   * check syslog for diagnostics.
                                                                         [fail]
Code:
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 (0.0.0.0).
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:
Quote:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.15
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255

Last edited by Cyberman; 01-07-2010 at 12:43 AM.
 
Old 01-07-2010, 01:59 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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 255.255.255.244" inside your "subnet" block.

Evo2.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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