Private IP
From Help system
Let`s say we do it for VE #101, and must add private IP: 10.10.10.10
Also, we have private IP for node itself as 10.10.10.0, and public IP for node as 75.126.10.10
Firstly add IP normally, even if it doesn't work.
vzctl set 101 --ipadd 10.10.10.10 --save
Create executable file /etc/sysconfig/vz-scripts/101.mount
#!/bin/bash # # if one of these files does not exist then something is really broken . /etc/sysconfig/vz . $VE_CONFFILE ip route del 10.10.10.10 dev venet0 scope link src 75.126.10.10 ip route add 10.10.10.10 dev venet0 scope link src 10.10.10.0 ip neigh add proxy 10.10.10.10 dev eth0
Ok, after enter to ve 101
vzctl enter 101
and add to rc.local following:
ip r a 10.0.0.0/8 dev venet0 scope link src 10.10.10.10
After reboot VPS and it should works
vzctl restart 101
