Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Feb 2003 17:50:26 -0600
From:      Daniel Schrock <dschrock@speakeasy.net>
To:        Paul Hoffman <phoffman@proper.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: dhcpd subnets?
Message-ID:  <3E4597C2.1080509@speakeasy.net>
In-Reply-To: <b21p84$sdc$1@FreeBSD.csie.NCTU.edu.tw>
References:  <b21p84$sdc$1@FreeBSD.csie.NCTU.edu.tw>

next in thread | previous in thread | raw e-mail | index | archive | help
Paul Hoffman wrote:
> Greetings again. I have a DSL connection with 32 addresses. My 
> ifconfig line in rc.conf looks like:
> ifconfig_tx0="inet a.b.c.130  netmask 255.255.255.224"
> defaultrouter="a.b.c.158
> 
> This works fine. I am trying to configure dhcpd (from the ports 
> collection). My config file says:
> 
> default-lease-time 86400;
> option subnet-mask 255.255.255.224;
> option routers a.b.c.158;
> option domain-name-servers a.b.c.130;
> ddns-update-style none;
> 
> subnet a.b.c.158 netmask 255.255.255.224 {
>          range a.b.c.150 a.b.c.157;
> }
> 
> This gets the fatal startup error:
> 
> /etc/dhcpd.conf line 7: subnet a.b.c.158: bad subnet number/mask combination.
> subnet a.b.c.158 netmask 255.255.255.224

a.b.c.158 is the last usable address, not the network address.  try 
a.b.c.128 instead, which is the network address for you /27.

.daniel


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E4597C2.1080509>