OVH : more than one ip failover on the same lxc container

pa657

Active Member
Dec 7, 2015
7
0
41
Hello,
after a lot of tests I was unable to set up a second IP failover from GUI.
I had a ping one the first and nothing with the same kind of setting for the second.
Finally, I was able to ping the second IP like this :
- on GUI, I set up my both IP
- In the container, I have added a second route table. (I have added at the file /etc/iproutes/rt_tables bottom : 1 rt2 )
- then in the terminal container
Code:
ip route add GATEWAY_OF_HOST dev INTERFACE_NAME table rt2
ip route add default via GATEWAY_OF_HOST table rt2
ip rule add from SECOND_IP_FAILOVER/32 table rt2
ip rule add to SECOND_IP_FAILOVER/32 table rt2

Is it normal the GUI settings seems to not work ?
Is is the correct way ?
 
If you are using both IPs on the same interface, did you configure the same virtual MAC for both failover IPs?
 
On the Ovh manager the two IP have different Mac addresses.
I have configured two interfaces for the LXC container on the GUI interface.
 
pa657,

I did a quick test for you on my Proxmox machine in OVH.

To my Debian-based LXC container, I added another interface (net1, eth1) with a different MAC and another IPv4 (I was adding it when the container was stopped).
After I started the container it successfully replies to pings to both IPs and has connectivity. I didn't have to do anything unusual.
 
Thanks for your help.
I have retried and it doesn't work...
I reconfigured my websites to use only one IP on this container...
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!