Best Practice for Reserving IP Address?

Hello,
I want to use the REST API to get an IP address from a particular network in Infoblox during my server build process. I'm looking for some guidance and best practices in terms of how to go about this:
- I'm able to get the next IP from a particular network with the next_available_ip function; however, once I have this IP, what's the best way to reserve it in Infoblox? From what I've seen in the API documentation, I think there are two ways:
-- DHCP reservation of the IP address to the specific MAC address of the machine
-- Create DNS records for the server; although, does this reserve the IP in Infoblox so it can't be assigned again?
- I planned on creating the DNS records through PowerShell WMI calls, but I discovered this can be done through Infoblox. Any suggestions as to which would be better or pros/cons for each option?

Best Practice for Reserving IP Address

You're welcome to run through the Powershell script calls but since you're already "in" the API for Infoblox, I would recommend just reserving the IP by creating a HOST object. That removes the IP from the "next available" function AND it gets the DNS record published as part of the reservation/provisioning process.

It depends on how long you

It depends on how long you want to reserve the IP address for. As don says you can ust create the HOST and the delete it later if you don't need it. Or you can created a Reservation, that will also lock the IP address.

If you just want to avoid race conditions with multiple users requesting addreses and creating hosts, as of WAPI 1.2.1 you can now embed the next_ip function in the host creation:

Example on how to reserve an IP address

When we created our networks, we didn't have a good template in place to reserve the first 8 addresses. Now we are trying to figure out a way to programmatically retro fit this template onto our networks. We'd rather not recreate them all.
I looked in ibcli to see if it had something, but according to https://github.com/slchorne/ibcli/blob/master/TODO, this is a feature that hasn't been implemented.
I'm looking through the Perl API, and I see that you can do an IPAM get type https://ipam.illinois.edu/api/doc/Infoblox/IPAM/Address.html, but I don't see how to set the type.
I haven't been able to find any example code for this either.
In the Infoblox GUI, I can set an IP to Reserved by going through the IPAM menu, drilling down to the IP address, and then adding a reservation. Is this possible through the Perl or WAPI? If so, can you give some demo code hints?
Thanks,
ep

Re: It depends on how long you

So actually we already thought of this, and we even added an exclusion range -- so that those IP's do NOT show as Used -- they are "free" just like others. -- However yes in the network there is a DHCP range - but it is no longer overlapping or interferring with this range.

Still no dice

So I went a different way, and we have in our templates a reserved range, for these "auto-selected" ip's I want to automate creating a host.. so I found the range using /range?network~=10.10.10.0 ( as we use /23 and /24 networks and can't determine that ahead of tiem) and &comment~=WACKY (whatever word is in your range comment you want to filter on).

Then using the reference of the Range object range/________ I fed that into nextavailableip:range/____

Re: Best Practice for Reserving IP Address?

I am not able to find the page from where i can post my question......can someone please reply ...

and my question is ........

i have written one rest call to get free ip address from Infoblox which works fine in my system but if i use try to run the page from some other system it wont work......code is written in sharepoint site which works fine for me and i m able to get the output but not working for others

Re: Best Practice for Reserving IP Address?

If you need to make a reservation for an IP address that is not in the list of leases you can add it by clicking on "Reservations" below the scope name, then select "Action" and "New Reservation" at the top of the "DHCP" tools window. Add thereservation name, IP address, MAC address and description then click "Add".

Re: Best Practice for Reserving IP Address?

TweakBox is an unapproachable application installer for iOS contraptions which let iOS clients download Cydia and other amazing untouchable applications to no closure and that too without Jailbreaking their gadgets.

Re: Best Practice for Reserving IP Address?

yeah VLANs for the win, if possible. I usually set my servers to the lowest numbers as you have, but that's just so they are easy to remember more than anything. You could do the same with other types of devices, but at some point thinking about it is going to slow you down and afaik there is no increased performance gained by doing this. I guess if nothing else, you could group your printers, as you may be using IP reservations anyway.