@PretoX I'm going crazy, this is incredible. I can not make it work.
- I have a dedicated OVH server installed with its proxmox 4.3 image. okay
- Next I create a container with Centos 7 minimal. A This container assigned an IP failover, which will be the main IP of the container, and which CPANEL uses as IP share. OK, I installed CPANEL and created a domain account. Everything works perfectly.
Now to that same container I want to add another IP Failover, to be used by CPANEL as IP Dedicated by another domain.
- As the container is centos ... I go to the route that you indicate me. / Sbin / and there does not exist, the ifup-local file is not there. Then I created the file with vim / sbim / ifup-local.
And add
#!/bin/sh
if [[ "$1" == "eth0" ]]
then
ip a add IP_FAILOVER_NEW/24 dev eth0:1
#else
#DO_NOTHING
fi
Sabe changes and create file, with escape, :wq
Correct?
Now... Go to file... /etc/sysconfig/network-scripts/ifup-aliases
This file exists, ok.
When I edit it, I go down to the bottom of the file and I can see that the lines that you indicate to me, exist there.
I close the file and turn it off and light the container.
I then enter ssh into the container and check that the ping from inside the container to the new IP failover is successful. But from outside (internet) does not respond.
I'm going to CPANEL, and I add a new ip.
Add new ip ... IP FAILOVER NETMASK 255.255.255.255
Then I create a domain, and assign that ip to the domain.
Well it does not work, it still does not respond to ping, ip failover or domain obviously.
This is insane, and it can not be so complicated.