<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'm not sure this is what he is angling for.  I think what he wants is some directive that<div>once a lease is given out to a mac address that matches a particular let's say class,</div><div>that IP address is never given out to another mac address until it is revoked.  I think</div><div>this is a not met by the suggestions so far.</div><div><br></div><div>Some important aspects:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>1) He doesn't want to deal with the administrative hassle of defining a list of mac addresses,</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>so "host" or "subclass" declarations can not be used</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">    </span>2) He doesn't want to deal with the minutia of having to edit the .conf file each time a new</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>MAC is recognized.</div><div><br></div><div>What would happen if you set the lease time in a pool for these devices to infinity?  I think this would</div><div>work for you, but if the client released the lease (which is something that clients are allowed to do)</div><div>then if would become free.</div><div><br></div><div>Perhaps a new directive available at various scopes:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">   </span>client-release-ignored</div><div><br></div><div>So how do get rid of a lease once you know you need to.  You could edit the leases file and restart, or</div><div>more elegantly use OMAPI and forcibly set the lease expire time to now.</div><div><br></div><div><br><div><div>On Feb 2, 2012, at 7:55 AM, jeffrey j donovan wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><base href="x-msg://705/"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Feb 2, 2012, at 4:10 AM, Küppers, Malte wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div lang="DE" link="blue" vlink="purple"><div class="WordSection1" style="page: WordSection1; "><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Hi there,<o:p></o:p></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">I’m currently setting up a large DHCP Server in my company with about 10000 subnets. I managed to get everything working fine, but I want to set static addresses for some hosts (e.g. printers).<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">The problem I’m experiencing is, that I don’t know how to make them static persistently. I used omshell to register a new host object from given MAC and set an IP but I’m not satisfied with that, because the addresses defined are given out<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">to dynamic clients again (A side effect of mixing static and dynamic range). Then I simply tried giving the lease the “reserved” state, which also worked fine, but the reserved lease does not appear in dhcpd.leases file after a while an so I guess it is not<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">persistently stored? Whats the difference between reserved and static ?<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">I just want a single IP range where leases can be dynamically made static and keep that IP… Any ideas?<o:p></o:p></span></div></div></div></span></blockquote><br></div><div><br></div><div>create a zone and allocate a dynamic range. once your clients receive a lease you can create a static entry for them. BUT,.. you must change the range for dynamic. So that you don't have statics in the middle of your dynamic range.</div><div><br></div><div><br></div><div><div>#FHS-1541 zone1</div><div>subnet 10.154.0.0 netmask 255.255.0.0 {</div><div><span class="Apple-tab-span" style="white-space:pre">               </span>option routers 10.154.1.1;</div><div><span class="Apple-tab-span" style="white-space:pre">           </span>option domain-name-servers 10.154.1.2;</div><div><span class="Apple-tab-span" style="white-space:pre">               </span>range 10.154.2.1 10.154.2.254;</div><div>}</div><div><br></div><div><div>## static hosts</div><div>############</div><div>#### noc clients</div><div>include "/usr/local/etc/154_clients";</div><div><br></div><div><div>#### 154_clients</div><div>group {</div><div>option routers 10.154.1.1;</div><div>option domain-name-servers 10.154.1.21, 10.154.1.2;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>host recon77 {</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>fixed-address 10.154.1.77;ia</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>hardware ethernet 00:25:bc:df:b1:4c;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>host FooBookPro {</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>fixed-address 10.154.1.99;</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>hardware ethernet 00:17:f2:d1:ff:f6;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>}</div><div>}#close group</div><div><br></div></div></div></div><br></div>_______________________________________________<br>dhcp-users mailing list<br><a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>https://lists.isc.org/mailman/listinfo/dhcp-users</blockquote></div><br></div></body></html>