dhcpd.conf logical hierachy
Bill Shirley
bill at c3po.polymerindustries.biz
Wed Oct 18 18:05:10 UTC 2017
Do not define static address in a pool and define your hosts outside
your 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; } } group
MyReservations { host printer_1 { # Impressora hardware ethernet **:**:**:**:**:**; fixed-address
172.16.20.201; option host-name "printer_1"; } }
Your group statement above is not needed, it doesn't add
any configuration.
However...
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"; } host printer_2 { #
Impressora hardware ethernet **:**:**:**:**:*2; fixed-address 172.16.20.202; option host-name
"printer_2"; } }
This will give out a different default lease time for every device in the group.
Bill
On 10/14/2017 12:00 PM, Narcis Garcia wrote:
> 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
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20171018/ef7a8c77/attachment.html>
More information about the dhcp-users
mailing list