Ask Your Question

How can I allocate a particular floating IP to an instance?

asked 2013-04-24 08:40:55 -0500

Rahul gravatar image

updated 2013-04-24 13:11:27 -0500

smaffulli gravatar image

I have installed OpenStack - essex and I'm a newbie. Is it possible to allocate a particular floating IP to an instance?

I will explain the problem.

I'm using private network range for fixed network, public network range for floating. See the network settings. (Here I'm replacing my floating network by series ;) )

# network specific settings
--root_helper=sudo nova-rootwrap
--verbose is used by the openstack server. is the gateway.

Created a project and then an instance using web interface, allocated public IP using the option "Access & Security" >> "Allocate IP to Project". (There was no IP in the pool by default).

But I can see that the allocated IP is my gateway IP I want to allocate or after this IP in the series, but how?

Hope my question is clear. Please help..!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-04-30 21:10:14 -0500

annegentle gravatar image

I think you want to allocate a floating ip to an instance

Adding a floating IP to an instance is a two step process:

nova floating-ip-create: Allocate a floating IP address from the list of available addresses.

nova add-floating-ip: Add an allocated floating IP address to a running instance.

Here's an example of how to add a floating IP to a running instance with an ID of 12

$ nova floating-ip-create

+-----------------+-------------+----------+------+ | Ip | Instance Id | Fixed Ip | Pool | +-----------------+-------------+----------+------+ | | None | None | | +-----------------+-------------+----------+------+

$ nova add-floating-ip 12

Use nova --debug parameter to see all the API calls happening.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2013-04-24 08:40:55 -0500

Seen: 971 times

Last updated: Apr 30 '13