I am unable to configure a DHCP server on either SuSE 7.0 or 7.1. I am sure I'm missing something, but I am unable to figure out what. Any help would be greatly appreciated. Below is my /etc/dhcpd.conf - ------------------------------------------------------ # dhcpd.conf # option definitions common to all supported networks... option domain-name "billsoft.com"; option subnet-mask 255.255.0.0; option broadcast-address 10.6.255.255; default-lease-time 604800; max-lease-time 2419200; subnet 10.6.0.0 netmask 255.255.0.0 { range 10.6.1.50 10.6.1.60; } ------------------------------------------------------ And this is the error I get when I try starting dhcpd - ------------------------------------------------------ No subnet declaration for start (0.0.0.0). Please write a subnet declaration in your dhcpd.conf file for the network segment to which interface start is attached. exiting. ------------------------------------------------------ -- Using Caldera OpenLinux 2.4
Put all your options and stuff *inside* the subnet spec. Not in front. That's what I did, and it sounds like DHCP is trying to set the options on the subnet 0.0.0.0... which is exactly what precedes option domain-name "billsoft.com"; etc.
I am unable to configure a DHCP server on either SuSE 7.0 or 7.1. ...
# dhcpd.conf option domain-name "billsoft.com"; option subnet-mask 255.255.0.0; option broadcast-address 10.6.255.255; default-lease-time 604800; max-lease-time 2419200;
subnet 10.6.0.0 netmask 255.255.0.0 { range 10.6.1.50 10.6.1.60; } ------------------------------------------------------
And this is the error I get when I try starting dhcpd -
------------------------------------------------------ No subnet declaration for start (0.0.0.0). Please write a subnet declaration in your dhcpd.conf file for the network segment to which interface start is attached. exiting. ------------------------------------------------------ -- -Mike suse-list@Linux.Schwager.com -o) Go to www.forsitesolutions.com to read Linux /\\ "Guides for Reasonably Intelligent People" _\_v The list will grow as I do.
On Tue, 6 Mar 2001, Michael Schwager wrote:
<*]Date: Tue, 06 Mar 2001 15:57:04 -0600
<*]From: Michael Schwager
<*]Put all your options and stuff *inside* the subnet spec. Not in front. ... And there is a mistake in your subnet identification (subnet 10.6.0.0 but range from 10.6.1.50-60) ^ ^
I don't think it's a mistake... I think that's ok... a machine with network address 10.6.1.50 is still on *subnet* 10.6.0.0 is it not? His netmask is 255.255.0.0, which means that the last two octets are machine numbers. He doesn't need a 0 in the 2nd to last octet. I'm not a network guru, but I think that's right. By all means correct me if I'm wrong.
So you should have something like:
subnet 10.6.0.0 netmask 255.255.0.0 { range 10.6.0.50 10.6.0.60; option domain-name "billsoft.com"; option routers IP.OF.DHCPD.NIC; option subnet-mask 255.255.0.0; option broadcast-address 10.6.255.255; option domain-name-servers IP.OF.FIRST.DNS, IP.OF.SECOND.DNS;
default-lease-time 604800; max-lease-time 2419200; }
Hope this helps...
ciao
/nb
-- -Mike suse-list@Linux.Schwager.com -o) Go to www.forsitesolutions.com to read Linux /\\ "Guides for Reasonably Intelligent People" _\_v The list will grow as I do.
On Tue, 6 Mar 2001, Michael Schwager wrote: <*]> <*]Put all your options and stuff *inside* the subnet spec. Not in front. <*]... <*]> And there is a mistake in <*]> your subnet identification (subnet 10.6.0.0 but range from 10.6.1.50-60) <*]> ^ ^ <*] <*]I don't think it's a mistake... I think that's ok... a machine with network <*]address <*] 10.6.1.50 <*]is still on *subnet* <*] 10.6.0.0 <*]is it not? His netmask is 255.255.0.0, which means that the last two <*]octets are machine numbers. He doesn't need a 0 in the 2nd to last octet. <*]I'm not a network guru, but I think that's right. By all means correct me <*]if I'm wrong. No, you are right on this one. This is my mistake, as I already did it myself. Sorry. ________________ Nicolas Beaulieu http://patagonia.dyndns.org " La raison fait l`homme, mais c`est le sentiment qui le conduit. " Jean-Jacques Rousseau Discours sur l`origine et le fondement de l`inegalite parmi les hommes. _________________
Thomas Long wrote:
I am unable to configure a DHCP server on either SuSE 7.0 or 7.1. I am sure I'm missing something, but I am unable to figure out what. Any help would be greatly appreciated. Below is my /etc/dhcpd.conf -
------------------------------------------------------
Here's what I've got in my /etc/dhcpd.conf: # option definitions common to all supported networks... option domain-name "mydomain.com"; option domain-name-servers 192.168.0.6, 192.168.0.3; option subnet-mask 255.255.255.0; default-lease-time 604800; max-lease-time 604800; subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.21 192.168.0.200; option broadcast-address 192.168.0.255; option routers 192.168.0.1; } I'm not sure about your 0.0.0.0 error, but my guess is that it if no routers are defined, there won't be anywhere for inet traffic (0.0.0.0) to go.. Just a swag though. Ken
participants (4)
-
Kenneth Hughes
-
Michael Schwager
-
Nicolas Beaulieu
-
Thomas Long