<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">-- <br class="">Best regards <br class=""><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">Sten Carlsen</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br class=""></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br class=""></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">"No trees were killed in the making of this e-mail... however,<br class="">a large number of electrons were terribly inconvenienced."</div></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On 4 Oct 2019, at 13.04, Milan Kovac <<a href="mailto:kovac65@gmail.com" class="">kovac65@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">I think I found the problem.<br class=""><br class="">There can not be defined range in subnet which is for static clients.<br class=""></div></div></blockquote>Well, no.</div><div><br class=""></div><div>My shared network has:</div><div>192.168.16.0/24 - one single network segment</div><div>192.168.16.1 - 192.168.16.30 - static and fixed allocations</div><div>192.168.16.31 - 192.168.16.49 - static allocations</div><div>192.168.16.50 - 192.168.16.150 - class based allocation - NO router given, no internet access</div><div>192.168.16.160 - 192.168.16.195 - class based allocation - router given</div><div>192.168.16.200 - 192.168.16.254 - static and fixed allocations</div><div><br class=""></div><div>192.168.161.0/24 - for unknown clients until they get a fixed address or are put into a class</div><div>192.168.161.100 - 192.168.161.150 - only unknown clients</div><div><br class=""></div><div>This works fine.</div><div><br class=""></div><div>Looking at the data you give, I see no conflict. Can you be more specific about the problem?</div><div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class="">I will test it more deeply and will give results.<br class=""><br class="">In any case, thanks a lot for ideas.<br class=""><br class="">Milan<br class=""><br class="">Dňa 2. 10. 2019 o 21:50 Simon Hobson napísal(a):<br class=""><blockquote type="cite" class="">Milan Kovac <<a href="mailto:kovac65@gmail.com" class="">kovac65@gmail.com</a>> wrote:<br class=""><br class=""><blockquote type="cite" class="">I have a few routed networks each with 2 subnets ( public and private )<br class=""></blockquote>...<br class=""><br class=""><br class=""><blockquote type="cite" class="">Here is dhcpd.conf<br class=""></blockquote>...<br class=""><blockquote type="cite" class="">shared-network 001 {<br class="">default-lease-time 43200;<br class="">max-lease-time 43200;<br class=""># divina-private<br class="">subnet 10.64.0.0 netmask 255.255.240.0 {<br class=""> option broadcast-address 10.64.15.255;<br class=""> option subnet-mask 255.255.240.0;<br class=""> option routers 10.64.0.1;<br class=""> range 10.64.0.2 10.64.15.254;<br class=""> }<br class=""><br class=""># divina-public<br class="">subnet 157.157.56.128 netmask 255.255.255.240 {<br class=""> option broadcast-address 157.157.56.143;<br class=""> option subnet-mask 255.255.255.240;<br class=""> option routers 157.157.56.129;<br class=""> deny unknown-clients;<br class=""> range 157.157.56.130 157.157.56.142;<br class=""> host Divinka-Uhliarik {<br class=""> hardware ethernet cc:2d:e0:3f:fa:42;<br class=""> fixed-address 157.157.56.130;<br class=""> }<br class=""> host Divinka-Obecny-Urad {<br class=""> hardware ethernet 00:4f:74:31:b4:03;<br class=""> fixed-address 157.157.56.131;<br class=""> }<br class=""> }<br class="">}<br class=""></blockquote>You need to fix this to start with.<br class="">Host statements must always be defined in the global scope - they cannot be defined in a lower scope as you have done here. Wherever you define them, they are always global in scope - but they can inherit options from where there are defined. This is almost certainly not what you want.<br class=""><br class="">So I suggest you fix this first and if the problem persists, then we can try and diagnose it.<br class=""><br class="">_______________________________________________<br class="">dhcp-users mailing list<br class=""><a href="mailto:dhcp-users@lists.isc.org" class="">dhcp-users@lists.isc.org</a><br class="">https://lists.isc.org/mailman/listinfo/dhcp-users<br class=""></blockquote>_______________________________________________<br class="">dhcp-users mailing list<br class=""><a href="mailto:dhcp-users@lists.isc.org" class="">dhcp-users@lists.isc.org</a><br class="">https://lists.isc.org/mailman/listinfo/dhcp-users<br class=""></div></div></blockquote></div><br class=""></body></html>