public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: John Jolet <john@jolet.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Printer Sharing with Samba
Date: Thu, 9 Mar 2006 12:24:27 -0600	[thread overview]
Message-ID: <EEEEF586-23F6-4B2B-99E5-8576CC565AD0@jolet.net> (raw)
In-Reply-To: <200603091205.53033.kkerwin@insightbb.com>

> 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



  reply	other threads:[~2006-03-09 18:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-09  2:28 [gentoo-user] Printer Sharing with Samba Kris Kerwin
2006-03-09  2:43 ` Daniel da Veiga
2006-03-09 18:05   ` Kris Kerwin
2006-03-09 18:24     ` John Jolet [this message]
2006-03-09 18:42     ` Daniel da Veiga
2006-03-09  3:06 ` Boyd Stephen Smith Jr.
2006-03-09 17:56 ` Eric Bliss
2006-03-09 18:07   ` Kris Kerwin
2006-03-10  1:26   ` Boyd Stephen Smith Jr.
2006-03-09 18:35 ` Michael Crute
2006-03-09 19:18   ` Daniel da Veiga
2006-03-09 19:33     ` Michael Crute
2006-03-10  4:53       ` [SOLVED] " Kris Kerwin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=EEEEF586-23F6-4B2B-99E5-8576CC565AD0@jolet.net \
    --to=john@jolet.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox