DHCP "static" assignments

Gregory Sloop gregs at sloop.net
Wed Aug 7 22:01:49 UTC 2013

RR> On Aug 7, 2013, at 2:12 PM, Gregory Sloop wrote:

>> CB> On Aug 7, 2013, at 1:39 PM, Gregory Sloop <gregs at sloop.net> wrote:
>>>> Here's the effect I want...
>>>> I want the DHCP server to hand out specific IP's to specific MAC
>>>> addresses, [as defined in the host record.]
>>>> They're static DHCP assignments, not static IP clients.
>>>> ---
>>>> i.e. I want to get assigned *via the DHCP server* to the
>>>> host with MAC Address aa:bb:cc:dd:ee:ff
>>>> Also, I'm assigning via DHCP addresses from to
>>>> anyone who asks via DHCP.
>>>> The way I do it now, is assign pools as follows
>>>> && set "allow unknown-hosts"
>>>> && set "deny unknown-hosts"
>>>> && set "allow unknown-hosts"
>>>> AND create a host entry for like so:
>>>> host somehost {
>>>>       hardware ethernet aa:bb:cc:dd:ee:ff;
>>>>       fixed-address;
>>>>       }
>>>> I *think* I have to include the relevant IP in a pool. (In this case
>>>>  [If there's no pool with in it, the DHCP server
>>>> won't hand out an IP for, no matter what host record there
>>>> is, will it?]
>> CB> Yes it will. You do not need a pool surrounding your reserved address.
>> CB> Something like this should work:
>> CB> host somehost {
>> CB>         hardware ethernet aa:bb:cc:dd:ee:ff;
>> CB>         fixed-address;
>> CB> }
>> CB> subnet netmask {
>> CB>         <options>
>> CB>         pool {
>> CB>                 range;
>> CB>                 range;
>> CB>         }
>> CB> }
>> Wow, I guess I really *was* holding it wrong, eh!? :)
>> Thanks all for the help!
>> [I still wish I could just define the whole pool as 1-20 and then the
>> host def would reserve it, but I'll live, I suppose. :) ]

RR> This wish, or its intent, has been expressed many times on this
RR> list.  The answer is always to use reserved leases.  But there's
RR> no way to reserve a lease using the configuration file.  It can
RR> only be done dynamically omshell/omapi (as mentioned in your
RR> original message)

So, let me ask this in regards to omapi/omshell.

I saw threads that said you could *reserve* the lease indefinitely,
but there were no commands that would mark it as free again - or
remove the reservation.

Is that still true, and if not, what are the commands to reserve and
release the reservation via omshell?

[I'm having a hard enough time just getting omshell to set the partner
down state, so I'm not feeling frisky and confident to do lots more
daunting tasks! :) ]

More information about the dhcp-users mailing list