From owner-freebsd-stable@FreeBSD.ORG Fri Jun 25 23:54:58 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 045FE106564A for ; Fri, 25 Jun 2010 23:54:58 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id AF0DE8FC13 for ; Fri, 25 Jun 2010 23:54:56 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoYFALzeJEyDaFvJ/2dsb2JhbACSeowwccIXhSEE X-IronPort-AV: E=Sophos;i="4.53,484,1272859200"; d="scan'208";a="81943301" Received: from ganges.cs.uoguelph.ca ([131.104.91.201]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 25 Jun 2010 19:54:53 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by ganges.cs.uoguelph.ca (Postfix) with ESMTP id E40C0FB8090; Fri, 25 Jun 2010 19:54:54 -0400 (EDT) X-Virus-Scanned: amavisd-new at ganges.cs.uoguelph.ca Received: from ganges.cs.uoguelph.ca ([127.0.0.1]) by localhost (ganges.cs.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kB6llocf17mV; Fri, 25 Jun 2010 19:54:54 -0400 (EDT) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by ganges.cs.uoguelph.ca (Postfix) with ESMTP id 21E2DFB809A; Fri, 25 Jun 2010 19:54:54 -0400 (EDT) Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id o5Q0Bgj08556; Fri, 25 Jun 2010 20:11:42 -0400 (EDT) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Fri, 25 Jun 2010 20:11:42 -0400 (EDT) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: alexs@ulgsm.ru In-Reply-To: <20100625152027.GA78442@mail.ulgsm.ru> Message-ID: References: <20100625152027.GA78442@mail.ulgsm.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-stable@freebsd.org 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: Fri, 25 Jun 2010 23:54:58 -0000 On Fri, 25 Jun 2010, alexs@ulgsm.ru wrote: > Hi all. > > > I tryed setup server for booting diskless hosts from different networks. > > In one network booting is ok. > I see thet realtek 8139 pxe can`t load pxeboot file fromi tftp server from another > network. > > By changing options in dhcp server, i resolve that pxeboot can load kernel > from this server, but than kernel trying mount nfs root file system its > failing. > Later mounting from /etc/fstab is ok. > > Maybe im wrong? but diskless booting in several networks possible ony using > several servers, one in each network? > > I think pxe rom on nic and kernel nfs root mounting can`t work on 3-layer. > >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? rick