[svlug] DHCPD error
ericv
ericv at cruzio.com
Mon Jan 29 17:49:47 PST 2007
BINGO.
I had a brainphardt that you had to call out the subnets separately (range and
zonefiles being the magic, not subnet declarations).
Thanks!
On Mon, 29 Jan 2007 17:09:53 -0800, Jeremy Hunt wrote
> 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
>
> _______________________________________________
> svlug mailing list
> svlug at lists.svlug.org
> http://lists.svlug.org/lists/listinfo/svlug
--
Eric N. Valor
http://www.alsa.org
(sent from my web client)
More information about the Svlug
mailing list