Subject: Re: dhcpd not assigning netmask correctly?
To: None <netbsd-help@NetBSD.org>
From: James K. Lowden <jklowden@schemamania.org>
List: netbsd-help
Date: 11/08/2006 19:48:32
Manuel Bouyer wrote:
> > # Set parameters for the 192.168.2.0/24 subnet.
> >   subnet 192.168.2.0 netmask 255.255.255.0 {
> >   range 192.168.2.100 192.168.2.208;
> >   option routers 192.168.2.254;
> > }
> > == unsnip ==
> > 
> > The client is not getting the global domain-name setting, and he's not
> > getting the subnet /24 netmask.  Instead, he's getting no domain name
> > and the global /16 netmask.  
> 
> It's to be expected with your config file; unless you override the
> subnet-mask option in the subnet section it will use the default one.
> The netmask part of the subnet definition is only to define the subnet
> range. You have to add 
> option subnet-mask 255.255.255.0;
> in your subnet section.

Woohoo!  Thankyouthankyouthankyou.  My network, she routes, she pings. 
She is beautiful! 

Ah.  New Congress, new netmask, new Secretary of Defense.  The gods must
be smiling.  

Thanks too for not reminding me to RTFM.  I see now it's documented in
dhcp-options(5).  Learn something new every day.  

Kind regards,

--jkl