Ask Your Question

how to make instance get floating ip instead of private ip

asked 2013-10-09 23:51:54 -0500

biji gravatar image

updated 2013-10-09 23:52:16 -0500

Using linux as instance, typing ifconfig will get private ip address. Is it possible to get floating ip address from inside VM?

edit retag flag offensive close merge delete


please try to explain with more details what you're trying to do, the effect you want to achieve, your setup.

smaffulli gravatar imagesmaffulli ( 2013-10-11 17:45:00 -0500 )edit

I believe (s)he wants to assign public IP directly to instance (instead of private and mapping floating IP to it).

rozie gravatar imagerozie ( 2015-10-08 06:09:31 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-10-20 15:20:44 -0500

Arashnikoo gravatar image

I don't think you can do that with Floating IP. I totally understand what you mean. I had the same question at the beginning.

You have to create another network and use your Floating IP on the new network. Then attach that network to your instance by creating a new port and attaching it to the instance.

What I usually do is create a internal network and a external one.

See the diagram attached. (image description)

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2013-10-09 23:51:54 -0500

Seen: 266 times

Last updated: Oct 09 '13