[svlug] DHCPD error

Jeremy Hunt jeremessiah at frostypenguin.net
Mon Jan 29 17:09:53 PST 2007


On Jan 29, 2007, at 4:44 PM, ericv wrote:

>
> I have a /23 network, 192.168.0.0/24 and 192.168.1.0/24.
>
> My dhcpd.conf is:
>
> =====
>
...

>
> subnet 192.168.1.0 netmask 255.255.255.0 {
> ddns-rev-domainname "1.168.192.in-addr.arpa";
>

...

> subnet 192.168.0.0 netmask 255.255.255.0 {
> option subnet-mask 255.255.255.0;
> option routers 192.168.0.1;
> }
> =====
>
> dhcpd starts, but gives no leases.  Syslog reveals:
>
> =====
> dhcpd: DHCPDISCOVER from 00:80:77:37:a8:02 via eth0: network  
> 192.168.0.0/24:
> no free leases
> =====
>
> Any ideas?
>

It looks like you just need to remove the second subnet declaration  
and fix the first one by changing the first line to:

subnet 192.168.0.0 netmask 255.255.254.0 {

and then changing the subnet-mask option to 255.255.254.0;


all other options can pretty much stay the same.

This will allow DHCPD to startup since it will see a declaration for  
it's own subnet 192.168.0/24 I'm guessing.

-Jeremy




More information about the Svlug mailing list