From owner-freebsd-questions@FreeBSD.ORG Mon Jul 28 10:25:44 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 A524A106566B for ; Mon, 28 Jul 2008 10:25:44 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by mx1.freebsd.org (Postfix) with ESMTP id 223168FC21 for ; Mon, 28 Jul 2008 10:25:43 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so3794865fgb.35 for ; Mon, 28 Jul 2008 03:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=kK/mo9Bn3i2Pk9BfKw+CW2Hxf9+4NZjqEbTaTyA3WlA=; b=YApcmSyqARuvMmrdCDsM9H2MZ8v1Y9WIwO9TcJtcj9wQxaqixFv5Wu1sMG9zwBgE1w dN/fJoC/WHNE8Z5v21NqW/tuTPU7KkkTOXWxEUvDKdeS9FRgsyhoVKdxaV4ccaI1d1oa ZPFsd9sDpNuI1uOv1chHTPWMskx1HOS+oC0xg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=tbTSkrpss+pceUTdiZgtQA1vXrniBN58UHVuHs9j9a4jF73KxirECboHpjKu+jVzad +OhXSWEOKVmfmIegv+lnA8Yiwjj6HFrHcu5ZJf3zpPcUXMkTzlDWpVMJBcK8zAXbxFCQ en8ozq+y1ky2zk6dq66qICY1thzf3BX8wkvSA= Received: by 10.86.1.1 with SMTP id 1mr2427861fga.61.1217240742710; Mon, 28 Jul 2008 03:25:42 -0700 (PDT) Received: from joshua.freebsdgr.org ( [85.72.79.51]) by mx.google.com with ESMTPS id 3sm16006672fge.3.2008.07.28.03.25.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 28 Jul 2008 03:25:41 -0700 (PDT) Message-ID: <488D9EA3.4010503@gmail.com> Date: Mon, 28 Jul 2008 13:25:39 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.14 (X11/20080609) MIME-Version: 1.0 To: Svein Halvor Halvorsen References: <488D72BF.80205@lvor.halvorsen.cc> <488D79C3.6070000@gmail.com> <488D89CF.1040100@lvor.halvorsen.cc> <488D949C.5020002@gmail.com> <488D988D.10901@lvor.halvorsen.cc> In-Reply-To: <488D988D.10901@lvor.halvorsen.cc> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 10:25:44 -0000 Svein Halvor Halvorsen wrote: > 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, a netmask of 255.255.254.0 should give you 10.0.0.1 to 10.0.1.254 host addresses. 10.0.1.1 is within range, it should work. > > >> 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. > > > The DHCP range you are assigning is a subset of what you allowed with the netmask, thus it is valid. >>> 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". > Ah, yes completely forgot the speedtouch has a telnet interface as well. I messed with it a few times myself, mostly for fun ;) > 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. > > I have only done PXE with Windows servers, and it has been quite some time - cannot remember the details. I certainly would not advise you to use the router for this - even if it is possible it has several drawbacks. - You will, sooner or later, change the router and your new one may not have the capability - You will spend a probably unreasonable amount of time trying to make it work - and it may not even succeed - Learning how to perform this on FreeBSD will help you apply it in many other situations. I would definitely go the isc-dhcp route.