From owner-freebsd-hackers Wed Sep 20 23:15:24 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.10]) by hub.freebsd.org (Postfix) with ESMTP id 4963637B423; Wed, 20 Sep 2000 23:15:18 -0700 (PDT) Received: from sexta.cs.huji.ac.il ([132.65.16.13] ident=exim) by cs.huji.ac.il with esmtp (Exim 3.15 #1) id 13bzda-0004tY-00; Thu, 21 Sep 2000 09:15:14 +0300 Received: from localhost ([127.0.0.1] helo=sexta.cs.huji.ac.il ident=danny) by sexta.cs.huji.ac.il with esmtp (Exim 3.15 #1) id 13bzdY-0001wq-00; Thu, 21 Sep 2000 09:15:12 +0300 X-Mailer: exmh version 2.2 06/23/2000 with nmh-0.24 To: Mike Smith Cc: Paul Saab , freebsd-hackers@freebsd.org Subject: Re: diskless workstation In-reply-to: Your message of Wed, 20 Sep 2000 23:09:35 -0700 . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 21 Sep 2000 09:15:12 +0300 From: Danny Braniss Message-Id: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200009210609.XAA01851@mass.osd.bsdi.com>you write: } }I think this is correct, actually. Danny, can you confirm that you're }using one of the class A address spaces (eg. 10.*.*.*?) } my net is class B. 132.65.0.0 }Actually, IMO the code around this is entirely wrong; we should always }respect the mask supplied by the server, and only use the canonical mask }if we don't get one at all. } my man! im cleaning up bootp and will let you know. }> 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 z }ilc }> }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 boo }t w }> }ill }> }> }> try and tftpboot from the wrong server. so im using 'option swap-se }rve }> }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. }> }> }> }> }> } }-- }... every activity meets with opposition, everyone who acts has his }rivals and unfortunately opponents also. But not because people want }to be opponents, rather because the tasks and relationships force }people to take different points of view. [Dr. Fritz Todt] } } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message