Compare VPS Hosting and Dedicated Server

ComfortVPS is here to help you find the right hosting, Save Time and Save Money!
Focus on cheap Windows VPS Hosting and Linux VPS Hosting Since 2012, and Dedicated Server NOW
How to add additional IP to Xen VPS via SSH?

How to add additional IP to Xen VPS via SSH?

First, cp /etc/sysconfig/network-scripts/ifcfg-eth0  /etc/sysconfig/network-scripts/ifcfg-eth0:1

Then vi /etc/sysconfig/network-scripts/ifcfg-eth0:1

Change DEVICE=eth0 to DEVICE=eth0:1 

and 

Change IPADDR=the.old.ip.address to IPADDR=the.NEW.ip.address

Save the config file, then run command service network restart 

Done, the new ip address should pingable now!

 

Reviews and Comments