<html><head><base href="x-msg://705/"></head><body 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;</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></body></html>