Ask Your Question
0

how to make instance aware of hes floating IP

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

XicoLoco gravatar image

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

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 https://www.mirantis.com/blog/configu... ) :

public_interface=eth1
default_floating_pool="ext-net"
auto_assign_floating_ip=true

how can i do this with neutron networking ?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

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

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

Comments

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 -0500 )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 -0500 )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 -0500 )edit
3

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

dbaxps gravatar image

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

Floating IP is available via metadata request :-

$curl http://169.254.169.254/latest/meta-data/public-ipv4

Sample :-

[boris@icehouse1 Downloads]$ ping 192.168.1.172
PING 192.168.1.172 (192.168.1.172) 56(84) bytes of data.
64 bytes from 192.168.1.172: icmp_seq=1 ttl=63 time=1.46 ms
64 bytes from 192.168.1.172: icmp_seq=2 ttl=63 time=0.347 ms
64 bytes from 192.168.1.172: icmp_seq=3 ttl=63 time=0.351 ms
64 bytes from 192.168.1.172: icmp_seq=4 ttl=63 time=0.334 ms
^C
--- 192.168.1.172 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@192.168.1.172
Last login: Thu Sep  4 18:49:42 2014 from 192.168.1.127
[fedora@vf20twonicrs01 ~]$ curl http://169.254.169.254/latest/meta-data/public-ipv4
192.168.1.172
edit flag offensive delete link more

Comments

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

curl http://169.254.169.254/latest/meta-data/public-ipv4

192.168.1.172

after this command what exact happens ?

XicoLoco gravatar imageXicoLoco ( 2014-09-07 14:26:57 -0500 )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 -0500 )edit

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: 2014-09-07 10:55:58 -0500

Seen: 1,407 times

Last updated: Sep 17 '14