Have you tried
chmod +x /sbin/ifup-local
reboot or
cd /etc/sysconfig/network-scripts && ./ifup-post ifcfg-eth0
like I proposed?
you forgot something obvious:
chmod +x /sbin/ifup-local
reboot or
cd /etc/sysconfig/network-scripts && ./ifup-post ifcfg-eth0
also check all other interfaced added from proxmox are removed
[root@ip network-scripts]# ./ifup-post ifcfg-eth0
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
.... Only former imported containers from openvz doesn't work.
And in CT LXC?If the CT imported from OpenVZ then you must set the network configuration manually to make LXC works.
You must:
- Add MAC Address which OpenVZ doesn't require it
- CIDR for IP. In OpenVZ you write 192.168.1.1 but LXC must be 192.168.1.1/24 for example
- Add Gateway which OpenVZ doesn't require it
@PretoX
Sorry I did not answer you before. I've been testing all weekend ... I could not get it to work ... I tried other virtualization software and it did not work either.
But then, I read in the documentation of that other software, that to make KVM work with more than 1 ip in Soyoustart and OVH had to ...
1. In the OVH / Soyoustart Manager, the failover ips that we want to add to the VPS must be given the same MAC that has the main IP of the VPS.
That is when we create a VPS we assign an IP with your MAC ... ok
But if we want to add more ips to that vps, these ips have to be created the same mac as the ip of the vps.
This is done from the OVH / Soyoustart panel.
Now the VPS if it responds to the ping of all the ips added !!
What a headache!!!!
For Centos I use this:
vim /sbin/ifup-local
#!/bin/sh
if [[ "$1" == "eth0" ]]
then
ip a add xxx.xxx.xxx.128/24 dev eth0:128
ip a add xxx.xxx.xxx.131/24 dev eth0:131
ip a add xxx.xxx.xxx.132/24 dev eth0:132
ip a add xxx.xxx.xxx.133/24 dev eth0:133
ip a add xxx.xxx.xxx.134/24 dev eth0:134
#else
#DO_NOTHING
fi
and in /etc/sysconfig/network-scripts/ifup-aliases
if [ -x /sbin/ifup-local ]; then
for DEVICE in $ifuplocal_queue ; do
/sbin/ifup-local ${DEVICE}
done
fi