Ask Your Question

how to reserve floating ip

asked 2016-06-06 08:28:32 -0500

sudarshan gravatar image


Iv assigned entire /24 subnet for neutron floating ip & now i want to reserve 2 ip's from this subnet for external network devices, such that neutron should not find these 2 ip's on the floating ip pool. How can i achieve this?

I am running kilo version of openstack. Let me know if u need any other details.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-09-08 05:11:49 -0500

Damia gravatar image

Hi Sudarshan,

I see two cases:

  • Want to reserve the IP for later.
  • Don't want the IP in the floating IP pool.

If you want to later use those IP within OpenStack as floating-ip, then my recommendation is that you add them to a project that doesn't have users (e.g. admin, services).

Using the neutron CLI, you can create a specific floating ip for that tenant:

neutron floatingip-create --tenant-id xxxyyy --floating-ip-address x.x.x.x FLOATING_NETWORK

Once you have need of them, you can release them and associate them with the preferred servers.

If instead those IP are already in use or should be reserved for external devices, you should create the subnet in the next fashion:

E.g.: I want to allow users to consume the next IPs to, and to

When I create the subnet I will use the next command:

neutron subnet-create --allocation-pool start=192.168.11,end= --allocation pool start=,end= --enable-dhcp --gateway --tenant-id ADMIN EXT_NET

I can also simply modify an existing subnet using the neutron subnet-update in a similar fashion.

Reference: (

In Mitaka subnet pools are also available, check them here: (

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-06-06 08:28:32 -0500

Seen: 1,145 times

Last updated: Jun 06 '16