From owner-freebsd-stable@FreeBSD.ORG Sat Jun 26 11:34:22 2010 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 96B4A106566B for ; Sat, 26 Jun 2010 11:34:22 +0000 (UTC) (envelope-from alexs@ulgsm.ru) Received: from mail.ulgsm.ru (skuns.ulgsm.ru [93.93.136.26]) by mx1.freebsd.org (Postfix) with ESMTP id 407A28FC17 for ; Sat, 26 Jun 2010 11:34:21 +0000 (UTC) Received: from mail.ulgsm.ru (localhost [127.0.0.1]) by mail.ulgsm.ru (Postfix) with ESMTP id 68C0E3A8F1 for ; Sat, 26 Jun 2010 15:34:19 +0400 (MSD) X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on skuns.gsm900.net Received: from mail.ulgsm.ru (localhost [127.0.0.1]) by mail.ulgsm.ru (Postfix) with ESMTP id 4CCB73A8F0 for ; Sat, 26 Jun 2010 15:34:19 +0400 (MSD) Received: from mail.ulgsm.ru (bazar.gsm900.net [192.168.0.160]) by mail.ulgsm.ru (Postfix) with ESMTP id 19F993A8EF for ; Sat, 26 Jun 2010 15:34:19 +0400 (MSD) Date: Sat, 26 Jun 2010 15:34:19 +0400 From: alexs@ulgsm.ru To: freebsd-stable@freebsd.org Message-ID: <20100626113418.GA80299@mail.ulgsm.ru> References: <20100625152027.GA78442@mail.ulgsm.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: diskless boot, nfs server behind router 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: Sat, 26 Jun 2010 11:34:22 -0000 * Rick Macklem [2010-06-25 20:11:42 -0400]: > From a quick glance at the code, I think that the dhcp server must return > the gateway the client uses to get to the server. (ie. it must be an ip > addr on the diskless client's network for the gateway to where the server > is) It looks like this will then be used to set boot.netif.gateway to the > correct value for the kernel. > > So you might want to check how your dhcpd is configured w.r.t. gateway > address? dhcp seems ok. [alexs:ul-it13:~]>kenv LINES="24" acpi_load="YES" boot.netif.gateway="10.144.140.1" boot.netif.hwaddr="00:1c:c0:5a:f4:72" boot.netif.ip="10.144.142.78" boot.netif.netmask="255.255.252.0" boot.nfsroot.nfshandle="Xbb55e849c6f9fd520c000000011c0600c20af931000000000000000000000000X" boot.nfsroot.path="/exp/fbsd71" boot.nfsroot.server="10.144.140.160" .... It is from diskless host in same subnet where tftp and nfs server. If i use server from over subnet, pxe cant load pxeboot, and kernel can`t mount boot.nfsroot.path="/exp/fbsd71". About pxe google found http://www.appdeploy.com/faq/detail.asp?id=10 As i understand router must make ip helper. I seen it in cisco routers, not freebsd. -- alexs