LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   I cannot get DHCP3-Server to work under ubuntu 9.10 (https://www.linuxquestions.org/questions/linux-networking-3/i-cannot-get-dhcp3-server-to-work-under-ubuntu-9-10-a-780464/)

Cyberman 01-07-2010 12:40 AM

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

evo2 01-07-2010 01:59 AM

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.


All times are GMT -5. The time now is 08:25 AM.