DHCPD3 "No subnet declaration for eth0 (0.0.0.0)"

Slawek Drabot sdrabot at yahoo.com
Sat Jun 21 09:22:06 BST 2008


set up a DHCPD on Ubuntu 8.04 and all was working well until I rebooted. Now DHCPD does not come up and above error is found in /var/log/daemon.log


files:
-----------------------------------------------------
/etc/default/dhcp3-server
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp3-server by the maintainer scripts

#
# This is a POSIX shell fragment
#

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#	Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES=eth0


/etc/ltsp/dhcpd.conf
#
# Default LTSP dhcpd.conf config file.
#

#log-facility local7;

authoritative;

subnet 192.168.2.0 netmask 255.255.255.0 {
    range 192.168.2.2 192.168.2.5;
    option domain-name "*";
    option domain-name-servers 192.168.1.254;
    option broadcast-address 192.168.1.255;
    option routers 192.168.1.1;
#    next-server 192.168.2.1;
#    get-lease-hostnames true;
#    option subnet-mask 255.255.255.0;
    option root-path "/opt/ltsp/i386";
    if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
        filename "/ltsp/i386/pxelinux.0";
    } else {
        filename "/ltsp/i386/nbi.img";
    }
}


/etc/network/interfaces
auto lo
iface lo inet loopback


iface wlan0 inet dhcp
wireless-key xxxx
wireless-essid xxxx

auto wlan0

iface eth0 inet static
address 192.168.2.1
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255

----------------------------------------------

strangely enough, I can get dhcpd to listen on wlan0, but clearly I want that to be eth0.

Any help appreciated.



      



More information about the ubuntu-au mailing list