From owner-freebsd-questions@FreeBSD.ORG Mon Jul 28 08:05:56 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 364251065682 for ; Mon, 28 Jul 2008 08:05:56 +0000 (UTC) (envelope-from subhro.kar@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.225]) by mx1.freebsd.org (Postfix) with ESMTP id 0B64E8FC1E for ; Mon, 28 Jul 2008 08:05:55 +0000 (UTC) (envelope-from subhro.kar@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so5157748rvf.43 for ; Mon, 28 Jul 2008 01:05:55 -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:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=JX1mmpHIDZ1NvyIcd6ULSSmlGmJcd3dvwO5UrZehdO0=; b=IHCvKrcY2IAY2u7xkRWiE7O04YRZYEWMx/qEEp1WIwwsNBtGxHUPo6LTPYlzuB1MrZ xgSG1sdlGgWllv6+ZvLJANKyQDWZWluQdjUmODOe/lVKBYDBWqJDu6CM8kieyusvbq2F 0XpAOTvucarVs5+ggkqHxby2D7CSmkWGExuEU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=eF/9cgNiqnPF/UYgpFku7edqazOT9NpNza1aVfnwjidEZ0gKc7vva1wYx5Qq2OBOWV g9xu50fOCJTqXBnkY4bb+K5R2rJaW4Ln5o+ttb1hA8PyMWVu9hydtavep4TqbN7ZUQ6J 7BlbVGhcuVTTmLXrNnirCo1Q2aqqgzN8jFbBo= Received: by 10.114.200.2 with SMTP id x2mr4584333waf.79.1217232355524; Mon, 28 Jul 2008 01:05:55 -0700 (PDT) Received: by 10.114.15.4 with HTTP; Mon, 28 Jul 2008 01:05:55 -0700 (PDT) Message-ID: Date: Mon, 28 Jul 2008 13:35:55 +0530 From: Subhro To: "Manolis Kiagias" In-Reply-To: <488D79C3.6070000@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <488D72BF.80205@lvor.halvorsen.cc> <488D79C3.6070000@gmail.com> Cc: Svein Halvor Halvorsen , 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 08:05:56 -0000 Just to add to that suggestion, if you have a separate DHCP server, make sure your router works as a DHCP client for the internal network as well. You should be able to do that by telnetting into the management port. You may use a serial cable as well. This is required in order to get the NAT working properly. Thanks Subhro On Mon, Jul 28, 2008 at 1:18 PM, Manolis Kiagias wrote: > Svein Halvor Halvorsen wrote: >> >> Hi, list! >> >> >> I have a private home network, on an ADSL2+ connection to the >> internet. The home network is behind NAT, all automatically set up >> by the router/dhcp server/wlan access point/adsl modem that I got >> from my ISP. It's a Thomson SpeedTouch 585 router. >> >> 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. >> >> 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) > >> Now, on my local network I'd like to put a diskless machine. As I >> understand it, my DHCP server needs to tell the client about the >> "filename" and a "next-server" to use. I don't think I can setup the >> Thomson router to do this. All the instruction I can find online >> advises me to install a DHCP server on the same machine that serves >> the pxe boot image. But if I do that, I'll get two DHCP servers on >> my local network. Is that ok? Will there be a race condition, when a >> client asks for an IP address? >> > > 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) > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- Subhro Kar Software Engineer Dynamic Digital Technologies Pvt. Ltd. EPY-3, Sector: V Salt Lake City 700091 India