Ask Your Question

Can I assign a floating IP to multiple VMs (same IP address)?

asked 2013-12-10 10:22:12 -0500

OldParrothead gravatar image

updated 2013-12-10 11:46:31 -0500

I have a need to setup multiple addresses for the watchdog software in pgpool. Similar to running my own load balancer.

As a result, I have tried multiple methods of integrating the eth0:1 interface.. If I use static IP addresses then I get them on the VM, but cannot associate a floating IP with them properly. Only a dhcp address shows up in Horizon or nova list

After much beating up on this, I have been able to do the following: Get a DHCP address onto eth0 (different for each VM) and a floating address to each one. These are addressable from anywhere. I also was able to get a static address (same one) onto eth0:1 of both VMs. It is addressable from the inside only...

Now, the sticky part.....Since my software (pgpool) manages it's own VIP, I do not want to use the load balancer in Openstack. Plus, since this works as an active/passive type server, I obviously cannot have the servers bouncing to each other.

I am looking for a reference to assigning a floating IP to 2 different instances, or can it be tunneled to the address which is on both ?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2013-12-10 13:10:40 -0500

Cristi Falcas gravatar image

Since floating IPs are only some NAT rules inside namespaces iptables, I don't think you can do this from the instances. You will need an exteranal mechanism to watch the active machine and if not responding, to remove the floating IP from that instance and assign it to the other one.

edit flag offensive delete link more


Thanks. I was afraid someone would say that...

OldParrothead gravatar imageOldParrothead ( 2013-12-10 13:30:18 -0500 )edit

answered 2016-01-11 19:40:48 -0500

The floating IP in openstack is different from the load balancing or HA stuff.

edit flag offensive delete link more

answered 2013-12-11 04:04:06 -0500

bvivek gravatar image

Yes, Same floating IP cannot be assigned to multiple instances.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2013-12-10 10:22:12 -0500

Seen: 1,991 times

Last updated: Jan 11 '16