From owner-freebsd-hackers Wed Sep 20 9:30:34 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from elvis.mu.org (elvis.mu.org [207.154.226.10]) by hub.freebsd.org (Postfix) with ESMTP id A106237B422; Wed, 20 Sep 2000 09:30:31 -0700 (PDT) Received: by elvis.mu.org (Postfix, from userid 1000) id D6F782B229; Wed, 20 Sep 2000 11:30:25 -0500 (CDT) Date: Wed, 20 Sep 2000 09:30:25 -0700 From: Paul Saab To: Danny Braniss Cc: Mike Smith , freebsd-hackers@freebsd.org Subject: Re: diskless workstation Message-ID: <20000920093025.A53255@elvis.mu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from danny@cs.huji.ac.il on Wed, Sep 20, 2000 at 11:57:40AM +0300 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Umm.. I'm using the netboot just fine here for the ports cluster and it is using the code in the tree w/ zero modifications. It boots via nfs and comes up with ip, netmask, and gateway. paul Danny Braniss (danny@cs.huji.ac.il) wrote: > bug report: > in lib/libstand/bootp.c: > > if (IN_CLASSA(myip.s_addr)) > nmask = htonl(IN_CLASSA_NET); > else if (IN_CLASSB(myip.s_addr)) > nmask = htonl(IN_CLASSB_NET); > else > nmask = htonl(IN_CLASSC_NET); > should be: > > if (IN_CLASSA(ntohl(myip.s_addr))) > nmask = htonl(IN_CLASSA_NET); > else if (IN_CLASSB(ntohl(myip.s_addr))) > nmask = htonl(IN_CLASSB_NET); > else > nmask = htonl(IN_CLASSC_NET); > > which explains why gateway was zero, even if it was provided by dhcp. > it also explains why it hung trying to mount via nfs. > > danny > > In message <20000919164129.A39104@elvis.mu.org>you write: > }Danny Braniss (danny@cs.huji.ac.il) wrote: > }> In message <20000919024512.A27691@elvis.mu.org>you write: > }> > }> }set this in your dhcpd.conf, but yes, I will fix it. > }> i know it should be in dhcpd.conf but what? :-) btw, i tried router but zilc > }h. > } > }option routers ip; > } > }> } > }> }> 2- if i set different hosts for dhcpd, tftpd, root and swap i get into > }> }> all sort of problems. the most anoying one is that the bios-pxe boot w > }ill > }> }> try and tftpboot from the wrong server. so im using 'option swap-serve > }r' > }> } > }> }I dont follow. > }> } > }> > }> if i set: > }> option root-path "132.65.16.6:/vol1/roots/fbsd-4.1S"; > }> then the ip gets chunked, and it will try to mount from the tftp server - > }> bummer > } > }Yeah.. I have not wanted to do this. I'll look at this in a little while. > } > }> if i set > }> option next-server myrootserver > }> the pxe-bios will use it for the tftpd - bummer > } > }please read the PXE specs to see how to tell it to grab the tftp loader > }from a different server. > } > }> so, at the moment i use > }> option swap-server myrootserver; > }> and it works. but it should be less blackmagic. also, what if i want a > }> different > }> root and swap server? > } > }I'll fix it if I get time. > > > > -- Paul Saab Technical Yahoo paul@mu.org - ps@yahoo-inc.com - ps@freebsd.org Do You .. uhh .. Yahoo!? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message