Click to See Complete Forum and Search --> : Mandrake 9 DHCP


vip8439
12-27-2002, 06:34 PM
Hey everyone.

Well I've got most of my problems ironed out but I cant get my computer to run as a dhcp server. I'm using webmin and when I try to start the server I get the following error:

Failed to start dhcpd :

Internet Software Consortium DHCP Server V3.0.1rc9
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
/etc/dhcpd.conf line 15: subnet 192.168.0.1: bad subnet number/mask combination.
subnet 192.168.0.1 netmask 255.255.255.0
^
/etc/dhcpd.conf line 28: subnet 192.168.0.1: bad subnet number/mask combination.
subnet 192.168.0.1 netmask 255.255.255.0
^
/etc/dhcpd.conf line 31: empty shared-network decl
}
^
Configuration file errors encountered -- exiting

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.


My computers on the network are not recieving ip addresses or anything at all.

pauper
12-27-2002, 07:54 PM
Your dhcp software is correct:
for an ip address of 192.168.0.1 with a subnet of 255.255.255.0 the subnet layout is:
Host address: 192.168.0.1
Network: 192.168.0.0 (Class C, CIDR/8, 254 hosts)
Network mask: 255.255.255.0
Broadcast address: 192.168.0.255

Even if you take it down to a 32 bit mask, the network address is still 192.168.0.0 - there is no legal combination of addresses where the subnet address could be 192.168.0.1

Just change the starting address to 192.168.0.0 and you should be ok.

vip8439
12-27-2002, 09:59 PM
Thanks, I did what you said and my dhcp works now. I do get an error in webmin:

Failed to start dhcpd :

Starting dhcpd: [FAILED]

Thats ok though, I'm just glad that it works.