Ask Your Question
2

how to reserve floating ip

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

sudarshan gravatar image

Hi,

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
0

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 192.168.1.11 to 192.168.1.29, and 192.168.1.45 to 192.168.1.150

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

neutron subnet-create --allocation-pool start=192.168.11,end=192.168.1.29 --allocation pool start=192.168.1.45,end=192.168.1.150 --enable-dhcp --gateway 192.168.1.1 --tenant-id ADMIN EXT_NET 192.168.1.0/24

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

Reference: http://docs.openstack.org/cli-reference/neutron.html (http://docs.openstack.org/cli-referen...)

In Mitaka subnet pools are also available, check them here: http://docs.openstack.org/developer/neutron/devref/address_scopes.html (http://docs.openstack.org/developer/n...)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 927 times

Last updated: Jun 06 '16