From owner-freebsd-questions@FreeBSD.ORG Mon Jul 28 09:42:59 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 433921065678 for ; Mon, 28 Jul 2008 09:42:59 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.178]) by mx1.freebsd.org (Postfix) with ESMTP id B687D8FC13 for ; Mon, 28 Jul 2008 09:42:58 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: by ik-out-1112.google.com with SMTP id c30so6017626ika.3 for ; Mon, 28 Jul 2008 02:42:57 -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=HKAakiQyxgb+Oui+tvjL+dth/hceB1a3WgCAQwAwZ0Y=; b=Ea7MFV5C4RiPdKSZWUWY9oBTBNuf+9hEvsGvRfqh0KRgfDuOwq24frdIQpLLZEPpZJ Y6WsLkxx1VOxuVCWGxecpoUG2it75lB0LnOpUkmZF/6U0+AdTWzz7a22s/bE47Uv6nE/ TEmwwBUin2Gz/Az37sMhCEGvs22NzUFs4wGEk= 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=K1wFdjQlOu5C9G5huiz1dtNfPArFDkmFwAfTIGMDQWmj0Ug3CLJB7W+1lNXLA7CSQE dKJioJhFamouGEqGPb4CduE4kCvmsiCp3oacBEk7T06XurBewcIz1hFqpnocOXdqc2ka XfgzJXWWVFUdkQAlPXaUdvEcHZkHNf8qvTqOQ= Received: by 10.210.65.2 with SMTP id n2mr5633475eba.145.1217238177146; Mon, 28 Jul 2008 02:42:57 -0700 (PDT) Received: from joshua.freebsdgr.org ( [85.72.79.51]) by mx.google.com with ESMTPS id z40sm19408443ikz.7.2008.07.28.02.42.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 28 Jul 2008 02:42:56 -0700 (PDT) Message-ID: <488D949C.5020002@gmail.com> Date: Mon, 28 Jul 2008 12:42:52 +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> In-Reply-To: <488D89CF.1040100@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 09:42:59 -0000 Svein Halvor Halvorsen wrote: > Manolis Kiagias wrote: > >>> Now, on this network, most of the computers get their IP by means of >>> DHCP. Except our home audio server, which have a hard coded ip >>> address in rc.conf, set to something within the range of the dhcp >>> server (10.0.0.2-10.0.0.253). The server seems to pick this up, and >>> don't give that address away to someone else. >>> >> You may also want to ensure that the router will never allocate your >> static IP address to someone else. >> Look at the DHCP router settings either for DHCP scope (set it to >> narrower values, and use a static IP outside the range) or for something >> like exceptions / exclusion where you can mark a specific IP that DHCP >> will never assign. >> > > 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 would also try a factory reset or firmware upgrade of the router. I have been using a Speedtouch 500 series for years, and never had any problems with settings not getting registered. AFAIR the 585 has one of the new web interfaces and it is kind of confusing. I found the 500 easier to use. >>> I've tried using other addresses outside this range, like 10.0.1.1, >>> but that doesn't work. All network access is lost when I do that. >>> >> 10.0.1.1 is a different network (I assume your netmask is >> 255.255.255.0, but check your router or your clients) >> > > You're right! But how do I make the entire 10/24 adress space > available? It would be "clean" (I guess) to have a different adresse > scheme for the static adresses. > 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. > Anyway, it this point this isn't really critical, as the router > figures out that the addresses I use, are in fact in use, and keeps > them out of its dhcp address pool. > > > >> You will have to shutdown the router's DHCP. Probably disable it >> permanently and assign this function to a machine. >> The DHCP of the router also sends you the following information (besides >> IP address): >> >> - DNS Server(s): Either the ones used by your ISP (consult its website) >> or its own address (i.e. 10.0.0.1). Most routers send their own address >> as a DNS server and perform the resolution by sending your request to >> ISP servers. >> - Gateway address: This is always the router's local IP address (i.e. >> 10.0.0.1) >> >> If you setup your own DHCP server, make sure it is set to send this info >> as well. (These are commonly known as DHCP options) >> > > 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. > Is there a way to debug the DHCP response from the current router > dhcp server? So I can see what options it actually sends? dhclient > doesn't seem to have a "more verbose" option, only less. > > > sv. > Not sure about this, sorry. However, don't expect much more than IP/Netmask, DNS Server, Gateway from a simple router. These should not be difficult to configure in isc-dhcp3 (net/isc-dhcp3-server). Have a look at this article: http://www.howtoforge.com/dhcp_server_linux_debian_sarge It is linux oriented, but very easy to adjust for FreeBSD. You will also need to add: option domain-name-servers 10.0.0.1; to set the DNS server address to your clients.