From owner-freebsd-stable@FreeBSD.ORG Wed Apr 22 05:47:44 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69E7E10656B3 for ; Wed, 22 Apr 2009 05:47:44 +0000 (UTC) (envelope-from alexs@analytic.mv.ru) Received: from analytic.mv.ru (ip186.105.dars-ip.ru [79.132.105.186]) by mx1.freebsd.org (Postfix) with ESMTP id D10978FC13 for ; Wed, 22 Apr 2009 05:47:42 +0000 (UTC) (envelope-from alexs@analytic.mv.ru) Received: from analytic.local (localhost [127.0.0.1]) by analytic.mv.ru (8.14.3/8.14.3) with ESMTP id n3M5lfcI049419 for ; Wed, 22 Apr 2009 09:47:41 +0400 (MSD) (envelope-from alexs@analytic.local) Received: (from alexs@localhost) by analytic.local (8.14.3/8.14.3/Submit) id n3M5leab049418 for freebsd-stable@freebsd.org; Wed, 22 Apr 2009 09:47:40 +0400 (MSD) (envelope-from alexs) Date: Wed, 22 Apr 2009 09:47:40 +0400 From: alexs@analytic.mv.ru To: freebsd-stable@freebsd.org Message-ID: <20090422054740.GA49349@mail.analytic.mv.ru> Mail-Followup-To: freebsd-stable@freebsd.org References: <20090421095114.GA35757@mail.analytic.mv.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090421095114.GA35757@mail.analytic.mv.ru> User-Agent: Mutt/1.4.2.3i Subject: Re: diskless netmask problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 05:47:44 -0000 * alexs@analytic.mv.ru [2009-04-21 13:51:14 +0400]: > Setup diskless in ip/22 subnet > > dhcpd.conf > subnet 192.168.0.0 netmask 255.255.252.0 { > use-host-decl-names on; > option subnet-mask 255.255.252.0; > option broadcast-address 192.168.3.255; > > host bart { > hardware ethernet 00:1c:c0:85:48:fe; > fixed-address 192.168.0.72; > filename "pxeboot"; > option root-path "192.168.0.160:/export/diskless/freebsd71"; > } > } > > System starts ok, but netmask on interface is not 255.255.252.0, > it gets 255.255.255.0 > > if put nfs server in 192.168.1.0-192.168.3.255, i have nfs_mountroot error. Solved by place in /export/diskless/freebsd71/boot/loader.conf boot.netif.netmask="255.255.252.0" But it is dirty. netmask must taken from dhcp.. > > -- > alexs > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -- alexs