1

I have a subnet definition in ISC dhcpd like this:

subnet 10.122.224.0 netmask 255.255.255.0 {
    ...
    range 10.122.224.64 10.122.224.127;
    ...
    host room1-printer {
            hardware ethernet 00:26:73:00:4f:33;
            fixed-address 10.122.224.67;
    }
}

So the fixed address is within the dynamic range.

What will happen if all addresses from the range except .67 were given away and now one more dynamic client with different MAC-address (not the one specified in hardware ethernet) asks for a lease? Will dhcpd give away this fixed address or reply with DHCPNAK or keep silence?

0

1 Answer 1

2

OK, your right, according to DHCP server used reserved IP and how dhcpd handles static IPs vs DHCP reservations questions and a thorough reading of the man dhcpd.conf, using fixed-address directive won't reserve it properly.
This could be done setting directive infinite-is-reserved to true and set up your client to ask for an infinite lease (though I don't know how).
The easiest way to achieve would be to have you reservation outside the range of dynamic IP like this:

subnet 10.122.224.0 netmask 255.255.255.0 {
    ...
    range 10.122.224.64 10.122.224.127;
   ...
    host room1-printer {
        hardware ethernet 00:26:73:00:4f:33;
        fixed-address 10.122.224.63;
    }
}
3
  • As far as I get it Reseved lease and host stanza are not the same thing. From the same section below: Leases may be set 'reserved' either through OMAPI, or through the 'infinite-is-reserved' configuration option (if this is applicable to your environment and mixture of clients). So this applies to existing lease and is set via different means.
    – demosito
    Mar 22, 2018 at 15:59
  • @demosito well your actually right. My mistake.
    – Kiwy
    Mar 22, 2018 at 16:28
  • thank you, your links pretty much clear it up. I think this should be accepted answer.
    – demosito
    Mar 22, 2018 at 19:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .