From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FHQ3A-0004Zs-8f for garchives@archives.gentoo.org; Thu, 09 Mar 2006 18:39:48 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k29IZqf6002452; Thu, 9 Mar 2006 18:35:52 GMT Received: from flower.jolet.net (cpe-24-27-31-221.austin.res.rr.com [24.27.31.221]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k29IOVhv028493 for ; Thu, 9 Mar 2006 18:24:31 GMT Received: from localhost (localhost.localdomain [127.0.0.1]) by flower.jolet.net (Postfix) with ESMTP id 6866A1803C for ; Thu, 9 Mar 2006 12:24:30 -0600 (CST) Received: from flower.jolet.net ([127.0.0.1]) by localhost (flower.jolet.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29833-02 for ; Thu, 9 Mar 2006 12:24:29 -0600 (CST) Received: from [192.168.1.51] (unknown [192.168.1.1]) by flower.jolet.net (Postfix) with ESMTP id 8342E18033 for ; Thu, 9 Mar 2006 12:24:29 -0600 (CST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <200603091205.53033.kkerwin@insightbb.com> References: <200603082028.27531.kkerwin@insightbb.com> <342e1090603081843v5c7418cbh962b8e4c0dec8993@mail.gmail.com> <200603091205.53033.kkerwin@insightbb.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: John Jolet Subject: Re: [gentoo-user] Printer Sharing with Samba Date: Thu, 9 Mar 2006 12:24:27 -0600 To: gentoo-user@lists.gentoo.org X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: amavisd-new at jolet.net X-Archives-Salt: 702eba89-a689-441f-ae80-985a9cdaa3f8 X-Archives-Hash: 66394a8ea854cc0208681103a846bcc4 > Question: how does one *make* a static IP? I thought that IP was > assigned by DHCP? Isn't that the way that DHCP works? It leases an IP > to a specific computer, which then gives up that lease when it's done > using it. At that point, DHCP is free to re-lease that same IP to > whomever else requests it, correct? If that's the case, what would > prevent another computer from accidentally obtaining that same IP? > > Otherwise, if this is a viable solution, how do I make it work? I'm > comfortable editing config files, but I just don't know where to go > to do it. > > Thanks again, all, for your help. > > Kris this is a more complicated question than it appears. Let's say, for instance that you have an actual dhcp server, not just a router/ap giving out ips. Now, most dhcp servers allow you to either statically, or dynamically, associate an IP with a MAC address (hardware address). I can set my dhcp server up such that you ALWAYS get the same ip address for a given mac address. This is helpful in some cases where you have more ip space than machines and want to know who gets what. I can either do that by manually adding the mac into the configuration, or by making an infinate lease time. in both cases, you've got a static dynamic address :) if you have more machines than ip space (a class C subnet has on the order of 254 possible addresses), you have to have dynamic dhcp for those. in that case, you have a much shorter lease time, and when a box comes on, it asks for the last address it has, and the dhcp server says "yes" if no one is using it, or "no, use this one" if it's in use. however, IP is NOT limited to using dhcp. you can manually set your machine to have a given ip address (since this is the gentoo list, it's in the /etc/conf.d/net file). if you're manually setting an ip address, you do have to be careful that you're not setting it in the range that the dhcp server will assign. email me offline if you need more detail than that....ip theory in general is a little off-topic. -- gentoo-user@gentoo.org mailing list