Jump to content
SolusVM Community


This topic is now archived and is closed to further replies.


How can I add new IPs to Slave node

Recommended Posts

Hi everyone,

I have installed solusvm on a centos node with xen support.


Right now the server have 5 IPs and all works fine.

But I need more IP address so I request some more from DC. But the IPs we got from DC do not have Gateway address so it can't use directly on VPS.


So how can I add those new IPs on my Slave node so solus vm can use them when creat new VPS?


Another issue is,

I am having trouble add additional IPs to a VPS.

I have to edit /home/xen/vm$/vm$.cfg and reboot the VPS, or the new IP will not be able to connect.


Could anyone help me with these issues?


Thank you very much!

Best regards.

Share this post

Link to post
Share on other sites

The ip's must have a gateway, the DC should tell you what it is.


When you add an additional ip to a vps you must reboot the vps using the reboot button for the ip to update in the config and os.

Share this post

Link to post
Share on other sites

Thank you for your reply, I have got more info from DC.


They told me the gateway address is the 2nd IP of the block I got.

If I got 16 IPs -, then my first IP is "network address", second IP ( is "gateway address", last IP( "broadcast address".


The issue is after I bind IP into OS, Solus VM still can not use those new IPs.

Share this post

Link to post
Share on other sites

I'm sure you are using Xen? So you need routed IP block.


Since you got a /28 IP block We will use netmask



note that the and won't be usable as they are broadcast IPs, in essense 3 IPs are not usable including the gateway... in this case it is advisable as much as possible to get /27 block so you won't waste another 3IPs should you need to grow the VPS in the future.



Do this on the Slave node.


Start by creating the file /etc/sysconfig/network-scripts/ifcfg-eth0:0 and the contents will read:









Then, as root, run


/sbin/ifup eth0:0




Next, make sure IP Forwarding is enabled on the Host OS. To do that:




Edit the /etc/sysctl.conf file and change this line:


net.ipv4.ip_forward = 0


to this:


net.ipv4.ip_forward = 1



Then run this command:


echo 1 > /proc/sys/net/ipv4/ip_forward





Then set default gateway set netmask and add all the IPs in this new IP block.


Create a new VPS and see if you will be able to ping it!

Share this post

Link to post
Share on other sites
Thank you Roel, it works.

Thank you very much!


Hope this can be added into wiki by solus VM staff, it's very useful for newbie like me.


Glad it worked :)


Next time you are gonna add new block you need a new ifcfg-eth, so in essense that would be ---> /etc/sysconfig/network-scripts/ifcfg-eth0:1 and so on....

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.