From owner-freebsd-questions Sat Feb 8 15:50:19 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21BFB37B401 for ; Sat, 8 Feb 2003 15:50:18 -0800 (PST) Received: from mail.speakeasy.net (mail14.speakeasy.net [216.254.0.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96C9E43F3F for ; Sat, 8 Feb 2003 15:50:17 -0800 (PST) (envelope-from dschrock@speakeasy.net) Received: (qmail 7474 invoked from network); 8 Feb 2003 23:50:26 -0000 Received: from unknown (HELO speakeasy.net) (dschrock@[64.81.225.7]) (envelope-sender ) by mail14.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 8 Feb 2003 23:50:26 -0000 Message-ID: <3E4597C2.1080509@speakeasy.net> Date: Sat, 08 Feb 2003 17:50:26 -0600 From: Daniel Schrock User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Paul Hoffman Cc: freebsd-questions@freebsd.org Subject: Re: dhcpd subnets? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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