<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Do not define static address in a pool and define your hosts outside<br>
your subnet:<br>
<pre wrap=""><font color="#993300">authoritative;
use-host-decl-names on;
server-name "equilibri.cpu.actiu.net";
subnet 172.16.0.0 netmask 255.255.0.0 {
option routers 172.16.20.100;
option broadcast-address 172.16.255.255;
option domain-name-servers 172.16.21.61;
option ntp-servers 172.16.20.100;
pool {
# IP range to be assigned dinamically
range 172.16.20.150 172.16.20.189;
allow unknown-clients;
}
}
group MyReservations {
host printer_1 { # Impressora
hardware ethernet **:**:**:**:**:**;
fixed-address 172.16.20.201;
option host-name "printer_1";
}
}
</font></pre>
Your group statement above is not needed, it doesn't add<br>
any configuration.<br>
<br>
However...<br>
<pre wrap=""><font color="#993300">group MyReservations {
default-lease-time 21600; # 6 hours
host printer_1 { # Impressora
hardware ethernet **:**:**:**:**:**;
fixed-address 172.16.20.201;
option host-name "printer_1";
}
</font><font color="#993300"><font color="#993300"> host printer_2 { # Impressora
hardware ethernet **:**:**:**:**:*2;
fixed-address 172.16.20.202;
option host-name "printer_2";
}
</font>}</font></pre>
This will give out a different default lease time for every device
in the group.<br>
<br>
Bill<br>
<br>
<br>
<div class="moz-cite-prefix">On 10/14/2017 12:00 PM, Narcis Garcia
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:f946874b-a60d-6045-1e31-044f57aaab99@actiu.net">
<pre wrap="">In a Debian 9 host, I receive warnings like:
Dynamic and static leases present for 172.16.20.201.
Remove host declaration printer_1 or remove 172.16.20.201
from the dynamic address pool for 172.16.0.0/16
I'm trying to combine static reservations with dynamic assignment in
same subnet:
authoritative;
use-host-decl-names on;
server-name "equilibri.cpu.actiu.net";
subnet 172.16.0.0 netmask 255.255.0.0 {
option routers 172.16.20.100;
option broadcast-address 172.16.255.255;
option domain-name-servers 172.16.21.61;
option ntp-servers 172.16.20.100;
pool {
# IP range to be assigned dinamically
range 172.16.20.150 172.16.20.189;
allow unknown-clients;
}
pool {
# IP range to be assigned statically
range 172.16.20.0 172.16.20.149;
range 172.16.20.190 172.16.20.255;
deny unknown-clients;
# deny all clients;
group MyReservations {
host printer_1 { # Impressora
hardware ethernet **:**:**:**:**:**;
fixed-address 172.16.20.201;
option host-name "printer_1";
}
}
}
}
But I've not clear if "group" and "host" work inside "pool", or what
else is the problem.
_______________________________________________
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>
<br>
</body>
</html>