From owner-freebsd-questions@FreeBSD.ORG Mon Jul 28 09:59:57 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 674D71065672 for ; Mon, 28 Jul 2008 09:59:57 +0000 (UTC) (envelope-from svein.h@lvor.halvorsen.cc) Received: from bene2.itea.ntnu.no (bene2.itea.ntnu.no [IPv6:2001:700:300:3::57]) by mx1.freebsd.org (Postfix) with ESMTP id 67ED28FC0C for ; Mon, 28 Jul 2008 09:59:56 +0000 (UTC) (envelope-from svein.h@lvor.halvorsen.cc) Received: from localhost (localhost [127.0.0.1]) by bene2.itea.ntnu.no (Postfix) with ESMTP id 891E890002 for ; Mon, 28 Jul 2008 11:59:54 +0200 (CEST) Received: from maren.thelosingend.net (maren.math.ntnu.no [129.241.211.48]) by bene2.itea.ntnu.no (Postfix) with SMTP id CE9F490003 for ; Mon, 28 Jul 2008 11:59:47 +0200 (CEST) Received: (qmail 46087 invoked by uid 88); 28 Jul 2008 11:59:38 +0200 Received: from maren.math.ntnu.no (HELO weld.ej2.thelosingend.net) (129.241.211.48) by maren.thelosingend.net (qpsmtpd/0.31.1) with ESMTP; Mon, 28 Jul 2008 11:59:38 +0200 Message-ID: <488D988D.10901@lvor.halvorsen.cc> Date: Mon, 28 Jul 2008 11:59:41 +0200 From: Svein Halvor Halvorsen User-Agent: Thunderbird 2.0.0.9 (X11/20080315) MIME-Version: 1.0 To: Manolis Kiagias References: <488D72BF.80205@lvor.halvorsen.cc> <488D79C3.6070000@gmail.com> <488D89CF.1040100@lvor.halvorsen.cc> <488D949C.5020002@gmail.com> In-Reply-To: <488D949C.5020002@gmail.com> X-Enigmail-Version: 0.95.0 OpenPGP: id=9198BB40; url=mailto:pgpkey@svein.halvorsen.cc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Debian amavisd-new at bene2.itea.ntnu.no Cc: questions@freebsd.org Subject: Re: Network, routers, DHCP and PXE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jul 2008 09:59:57 -0000 Manolis Kiagias wrote: >> Yeah, but even though the router has customizable values for this >> range, and issues a warning when i try to change them, it still >> doesn't change them when I click "yes" on the warning. It is >> pre-configured to 10.0.0.2-10.0.0.253 >> >> I could of course use 10.0.0.254 for my static ip, but my room mate >> also wants a static address. > > What are you trying to set it at? I would just lower the 253 value, so I > could use the upper end for my static addresses. If you try to set it to > a subnet outside it's own address, it will definitely not accept it. I managed to change the router ip address to 10.0.0.1/23 and just keep the default dhcp address space as 10.0.0.2-10.0.0.253. Now I seem to be able to use 10.0.1.1/24 for my own private use. (I don't think I really know what I'm doing here, but it works!) > Well problem is, a netmask of 255.255.255.0 means only the last octet > can be used for hosts. Your DHCP server is already assigning addresses > from this space. Well, I changed it to 255.255.254.0 (0xfffffe00) but kept the dhcp range as it was. >> So as long as I make my own DHCP server act the same way as the >> router one, I should be fine? NAT and all will work? > > Yes. As long as the clients have a valid DNS to ask, and a valid gateway > to send their packets, everything will work properly. If you come to > think about it, you are already doing this on the system with the static > configuration. Ok, I will look into this. Also, looking through the telnet interface options (which are far more than the web interface gives), I see that I can add "dhch server option templates", "dhcp server option instances" and that I can assign such an instance to the "dhcp server pool options". This uses a different config scheme than the isc dhcp server config files, though. And it seems I need to create a template before I can create an instance. The template takes a name and an option id as paramters. The instance, then takes a name, a template, and a value as mandatory paramters. Also enterprice number, suboption number, and more. How does the "filename", "next-server", etc map to option ids? Are these isomorphic, or do I get this completely wrong? Does this make any sense to you, or anyone else here? Should I try to make the router DHCP server serve the right options, or would you go the isc dhcp route? Thank you very much for your help so far! sv.