<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 14-01-2020 16.38, Petar Kozić wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAA1-vMGmQwnH+LmHtTr9n53nATa0f4F6AKr=Da_jK1UpOouNjw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style>body{font-family:Helvetica,Arial;font-size:13px}</style>
<div style="font-family:Helvetica,Arial;font-size:13px"><br>
<div style="margin:0px">#</div>
<div style="margin:0px"># Subnet declarations</div>
<div style="margin:0px">#</div>
<div style="margin:0px">subnet 116.199.70.96 netmask
255.255.255.240 {</div>
<div style="margin:0px">default-lease-time 3600;</div>
<div style="margin:0px">option routers 116.199.70.97;</div>
<div style="margin:0px">option interface-mtu 1400;</div>
<div style="margin:0px">option subnet-mask 255.255.255.240;</div>
<div style="margin:0px">option broadcast-address 116.199.70.111;</div>
<div style="margin:0px">option domain-name-servers 8.8.8.8,
8.8.4.4;</div>
<div style="margin:0px"><b>range 116.199.70.98 116.199.70.110;</b></div>
<div style="margin:0px">}</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">## IP reservation from first subnet ##</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">host myhost1 {</div>
<div style="margin:0px">hardware ethernet FE:4A:DB:C0:BF:AD;</div>
<div style="margin:0px"><b>fixed-address 116.199.70.98;</b></div>
<div style="margin:0px">}</div>
<div style="margin:0px">host myhost2 {</div>
<div style="margin:0px">hardware ethernet AA:6D:47:76:58:58;</div>
<div style="margin:0px">fixed-address 116.199.70.99;</div>
<div style="margin:0px">}</div>
<div style="margin:0px">host myhost3 {</div>
<div style="margin:0px">hardware ethernet 86:CB:59:8B:CD:BA;</div>
<div style="margin:0px">fixed-address 116.199.70.100;</div>
<div style="margin:0px">}</div>
<div style="margin:0px">host myhost4 {</div>
<div style="margin:0px">hardware ethernet D6:9R:79:44:93:AD;</div>
<div style="margin:0px">fixed-address 116.199.70.101;</div>
<div style="margin:0px">}</div>
<div style="margin:0px">host myhost5 {</div>
<div style="margin:0px">hardware ethernet 06:BW:15:DD:09:79;</div>
<div style="margin:0px">fixed-address 116.199.70.102;</div>
<div style="margin:0px">}</div>
</div>
</blockquote>
<p>These host statements have a fixed address that is in the range,
that means that the server will hand these addresses out to any
other device that asks for an address.</p>
<p>Host statements with fixed addresses should normally have
addresses outside any range, then the server will not be able to
hand these addresses out to other devices.<br>
</p>
<blockquote type="cite"
cite="mid:CAA1-vMGmQwnH+LmHtTr9n53nATa0f4F6AKr=Da_jK1UpOouNjw@mail.gmail.com">
<div style="font-family:Helvetica,Arial;font-size:13px">
<div style="margin:0px"><br>
</div>
<div style="margin:0px">My problem is in that because the client
in IP reservation sometimes gets reserved IP sometimes first
free IP from range which isn't in the reservation list.</div>
<div style="margin:0px">I can't figure how to set this config to
permanent stay on the same IP.</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">For example if myhost1 gets the right IP
and that VM works about 10 days and I need to reboot for some
reason after reboot get another IP, that is weird.</div>
<div style="margin:0px">Or on an example I have baremetal server
where I have virtualization and there is my VM from myhost1 to
myhost8, if I reboot baremetal after booting, two VM get right
IP, other not.</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">What wrong am I doing?</div>
<div style="margin:0px">Thank you.</div>
<div style="margin:0px"><br>
</div>
</div>
<br>
<div class="gmail_signature">
<div style="font-family:'helvetica
Neue',helvetica;font-size:14px;line-height:normal;margin:0px;background-color:rgb(253,253,253)"><font
face="arial, sans-serif" color="#333333"><b>—</b></font></div>
<div
style="font-size:14px;line-height:normal;margin:0px;font-family:arial,sans-serif;background-color:rgb(253,253,253)"><font
color="#333333"><b><br>
</b></font></div>
<div
style="font-size:14px;line-height:normal;margin:0px;font-family:arial,sans-serif;background-color:rgb(253,253,253)"><font
color="#333333"><b>Petar Kozić</b></font><span
style="color:rgb(51,51,51)"><br>
<br>
</span></div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Best regards
Sten Carlsen
No improvements come from shouting:
"MALE BOVINE MANURE!!!" </pre>
</body>
</html>