how to make instance aware of hes floating IP

asked 2014-09-07 10:55:58 -0600

XicoLoco gravatar image

updated 2014-09-17 18:45:18 -0600

how to make instance aware of hes floating IP ... instance always have only private network device and when you configure the floating IP in the VM you lost conectivity.

i guess its because the external netowrk is only in neutron. How do i parse the info from floating IP to VM ?

i got something they do exactly what i want but its from nova networking (got here ) :


how can i do this with neutron networking ?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-09-08 08:12:07 -0600

Remko Duppen gravatar image

Your VM isn't aware of the external ip adress, and it doesn't have to be aware of it. Look at it as if the VM is a machine behind a NAT router, Neutron wires up the external ip address to your VM and handles the address translation.
Your VM is, at OS level, only aware of the internal ip address.

edit flag offensive delete link more


but that is bad for seting up apache server and a lot of other servers configuration ...

so how rackspace does that ?

XicoLoco gravatar imageXicoLoco ( 2014-09-08 14:39:30 -0600 )edit

Dont' really see why that would be bad. virtualhosts in apache implemented using domain names, not ip adresses, there is imho no need to know the actual ip address in your web server, configure everything using the fqdn and you're set.

Remko Duppen gravatar imageRemko Duppen ( 2014-09-09 03:25:46 -0600 )edit

but how rackspace does its old nova networking model ? and tk you i will try fqdn

XicoLoco gravatar imageXicoLoco ( 2014-09-09 08:00:10 -0600 )edit

answered 2014-09-07 11:39:07 -0600

dbaxps gravatar image

updated 2014-09-07 11:52:14 -0600

Floating IP is available via metadata request :-


Sample :-

[boris@icehouse1 Downloads]$ ping
PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=63 time=1.46 ms
64 bytes from icmp_seq=2 ttl=63 time=0.347 ms
64 bytes from icmp_seq=3 ttl=63 time=0.351 ms
64 bytes from icmp_seq=4 ttl=63 time=0.334 ms
--- ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 0.334/0.623/1.463/0.485 ms

[boris@icehouse1 Downloads]$ ssh -i oskey25.pem fedora@
Last login: Thu Sep  4 18:49:42 2014 from
[fedora@vf20twonicrs01 ~]$ curl
edit flag offensive delete link more


sorry, but how to configure it in the VM, how to make a valid interface ? inside VM ....


after this command what exact happens ?

XicoLoco gravatar imageXicoLoco ( 2014-09-07 14:26:57 -0600 )edit

so its shows my ip, but how i can use that as a VM internal interface ?

XicoLoco gravatar imageXicoLoco ( 2014-09-17 15:02:33 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-09-07 10:55:58 -0600

Seen: 1,865 times

Last updated: Sep 17 '14