vps add multiple IP but kloxo prompt appears no_ip_address,kloxo bind multiple IP

Sometimes we give vps add multiple IP,But kloxo prompt appears no_ip_address,kloxo bind multiple IP how to do it? If the platform is openvz,Then you must contact your room to bind to IP vps,Then ssh to log your vps set up the following configuration files:

-rw-r–r– 1 root root 101 Feb 7 19:30 ifcfg-venet0
-rw-r–r– 1 root root 73 Feb 7 19:39 ifcfg-venet0:0
-rw-r–r– 1 root root 73 Feb 7 19:39 ifcfg-venet0:1
-rw-r–r– 1 root root 71 Feb 7 19:39 ifcfg-venet0:2
-rw-r–r– 1 root root 71 Feb 7 19:40 ifcfg-venet0:3

Usually content is more ifcfg-venet0:
DEVICE=venet0
BOOTPROTO=static
ONBOOT=yes
IPADDR=127.0.0.1
NETMASK=255.255.255.255
BROADCAST=0.0.0.0

You can follow more ifcfg-venet0:0To build more IP configuration file:
DEVICE=venet0:0
ONBOOT=yes
IPADDR=173.212.231.22
NETMASK=255.255.255.255

Above,We want to create a new ifcfg-venet0:2,Then follow ifcfg-venet0:0To create a new,Only you need to modify the red words below to:

DEVICE=venet0:2
ONBOOT=yes
IPADDR=66.197.227.2
NETMASK=255.255.255.255

If you want to use ifcfg-venet0-range0 to bind multiple contiguous IP,That may encounter the following message:

SIOCADDRT: Network is unreachable

At this moment,You will find that in fact have been able to ping ip,can use。However, the panel did not recognize kloxo,and so,If you want kloxo panel recognize bound IP,To a new or a configuration file,More trouble,I do not know if there are other ways。

more ifcfg-venet0-range0
DEVICE=venet0
IPADDR_START=66.197.227.2
IPADDR_END=66.197.227.14
CLONENUM_START=2
NETMASK=255.255.255.255

At last,IP configuration file as follows:

ifcfg-venet0 ifcfg-venet0:1 ifcfg-venet0:11 ifcfg-venet0:13 ifcfg-venet0:2 ifcfg-venet0:4 ifcfg-venet0:6 ifcfg-venet0:8
ifcfg-venet0:0 ifcfg-venet0:10 ifcfg-venet0:12 ifcfg-venet0:14 ifcfg-venet0:3 ifcfg-venet0:5 ifcfg-venet0:7 ifcfg-venet0:9

service network restart to restart the network

重启 kloxo kloxo service restart

Leave a Comment