How to assign a fixed external ip to a vm?

asked 2013-05-06 22:46:52 -0600

kradnz gravatar image

I'm trying to get to grips with the differences between openstack and vMware which I am used to. I can't seem to get my head around the idea of the floating ip pool concept.

(bearing in mind I do not control my network, dns servers, etc.)

On vMware if I want to host a web server on a vm, I would create the vm, get the victual MAC address of the virtual nic (internet facing) and forward that to the network guys and they register it on their dns and dhcp server with the desired host name.

Is there an equivalent way of doing this under openstack? I don't really have a pool of ip's set aside and even then how is the vm's host name tied to whichever floating IP it picks up?

Sorry if that is unclear.

edit retag flag offensive close merge delete


fetahi gravatar imagefetahi ( 2013-10-14 23:21:51 -0600 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2013-10-14 21:50:56 -0600

arnaudleg gravatar image

updated 2013-10-14 21:52:19 -0600

Here are the most basic steps to achieve a standard network configuration using floating IPs:

  1. Create a router and set a gateway to an external network
  2. Create a network/subnet
  3. Add a router interface to the network created in step 2.
  4. Launch an instance and select the network you created in step 2.
  5. Allocate a floating IP for the external network used in step 1.
  6. Associate the floating IP to the instance

As a result, you should be able** to ping/ssh/... the instance from the external network.

**If this doesn't work, make sure your network interfaces are correctly set (ifconfig/route) by logging into the VM through the console in Horizon.

edit flag offensive delete link more

answered 2013-05-07 09:23:53 -0600

epillet gravatar image

You may get some help here for grizzly and nova-network.

Normally, you should be able to use the floating IPs on your instances once they have been defined.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2013-05-06 22:46:52 -0600

Seen: 1,988 times

Last updated: Oct 14 '13