My dhcp3-server is acting strangely (in my oppinion). I can't start the service, and when I look in the daemin.log afterwards I can see the following reported problem:
#tail /var/log/daemon.log
Code:
Sep 4 00:29:17 ltsp1 dhcpd: No subnet declaration for eth0 (192.168.50.1).
Sep 4 00:29:17 ltsp1 dhcpd: ** Ignoring requests on eth0. If this is not what
Sep 4 00:29:17 ltsp1 dhcpd: you want, please write a subnet declaration
Sep 4 00:29:17 ltsp1 dhcpd: in your dhcpd.conf file for the network segment
Sep 4 00:29:17 ltsp1 dhcpd: to which interface eth0 is attached. **
Sep 4 00:29:17 ltsp1 dhcpd:
Sep 4 00:29:17 ltsp1 dhcpd:
Sep 4 00:29:17 ltsp1 dhcpd: Not configured to listen on any interfaces!
I have seen meny post this error but the solutions I have found don't seem to match my problem. It tells me "No subnet declaration for eth0 (192.168.50.1)" but that's not true:
#ifconfig eth0
Code:
eth0 Link encap:Ethernet HWaddr 00:0D:88:64:A2:32
inet addr:192.168.50.1 Bcast:192.168.50.255 Mask:255.255.255.0
inet6 addr: fe80::20d:88ff:fe64:a232/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:670 (670.0 b)
Interrupt:193
Ubuntu dhcpd interface control file:
#cat /etc/default/dhcp3-server
#cat /etc/dhcp3/dhcpd.conf
Code:
ddns-update-style none;
option domain-name "";
get-lease-hostnames true;
#option domain-name-servers mainserver.skolesys.local;
log-facility local7;
subnet 192.168.50.0 netmask 255.255.255.0 {
range 192.168.50.50 192.168.50.254;
option routers 192.168.50.1;
default-lease-time 604800;
max-lease-time 605800;
filename "pxelinux.0";
option root-path "192.168.50.1:/opt/ltsp/i386";
}
Can anybody see a problem anywhare?
Best regards Jakob