From owner-freebsd-stable@FreeBSD.ORG Mon Jun 28 06:16:05 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 6F8C11065672 for ; Mon, 28 Jun 2010 06:16:05 +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 158358FC12 for ; Mon, 28 Jun 2010 06:16:04 +0000 (UTC) Received: from mail.ulgsm.ru (localhost [127.0.0.1]) by mail.ulgsm.ru (Postfix) with ESMTP id 109183A548 for ; Mon, 28 Jun 2010 10:16:02 +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 E86D23A541 for ; Mon, 28 Jun 2010 10:16:01 +0400 (MSD) Received: from mail.ulgsm.ru (bazar.gsm900.net [192.168.0.160]) by mail.ulgsm.ru (Postfix) with ESMTP id B5C103A536 for ; Mon, 28 Jun 2010 10:16:01 +0400 (MSD) Date: Mon, 28 Jun 2010 10:16:01 +0400 From: =?utf-8?B?0JrQu9GO0YfQvdC40LrQvtCyINCQLtChLg==?= To: freebsd-stable@freebsd.org Message-ID: <20100628061601.GA51359@mail.ulgsm.ru> References: <20100625152027.GA78442@mail.ulgsm.ru> <20100626113418.GA80299@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: Mon, 28 Jun 2010 06:16:05 -0000 * Rick Macklem [2010-06-26 10:24:44 -0400]: > > > On Sat, 26 Jun 2010, alexs@ulgsm.ru wrote: > > [stuff snipped] > > > > > > 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. > > > > Ok, this is when the server is on the same subnet and works ok. Am I > correct? Yes. > > > If i use server from over subnet, pxe cant load pxeboot, and kernel can`t > > mount boot.nfsroot.path="/exp/fbsd71". > > > > I thought you had said that you had gotten pxeboot to work across to > the other subnet and that it was the mount of "/" that then failed? > (It is that case where "boot.netif.gateway" needs to be checked to see > that it has the gateway for the client's subnet.) > > > 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. > > > If you haven't been able to get pxeboot to work when the server is on > a different subnet, I'm afraid I can't help with that. Sorry. its my english.. There are two problem, first with pxeboot file downloading, and it not freebsd maillist subject. And second with mount root from nfs server in different subnet. I`ll try write again from anothe way. I have two subnets: 10.144.142.0/22 - here is tftp server and diskless. 10.144.130.0/24 - here is nfs server. in isc-dhcpd.conf: next-server 10.144.140.160; option root-path "10.144.130.160:/exp/fbsdstable"; In this case, pxeboot loading is ok, kernel loading from 10.144.130.160:/exp/fbsdstable ok too. booting freeze on: ... uhub3: 2 ports with 2 removable, self powered uhub4: 8 ports with 8 removable, self powered Received DHCP Offer packet on re0 from 10.144.140.160 (accepted) (no root path) Sending DHCP Request packet from interface re0 (00:1c:c0:5a:f4:72) Received DHCP Ack packet on re0 from 10.144.140.160 (accepted) (got root path) re0 at 10.144.142.78 server 10.144.130.160 server name DHCPserver boot file pxeboot subnet mask 255.255.252.0 router 10.144.140.1 rootfs 10.144.140.160:/exp/fbsdstable Adjusted interface re0 SMP: AP CPU #1 Launched! Trying to mount root from nfs: NFS ROOT: 10.144.130.160:/exp/fbsdstable Now diskless 8.1 PRERELEASE -- alexs