We are aware of a potentially service impacting issue. Learn more

Adding Additional IPs to your Server/VPS Print

  • vps, centos, ip
  • 1

The settings apply to CentOS

In SSH /Putty


1. We copy the file of eth0 interface and we rename it: eth0:0. This will enable us to edit the file:

cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth1

2. We can now edit the eth1 file to replace the IP. You can either use nano or vi(m):

nano /etc/sysconfig/network-scripts/ifcfg-eth1

First of all, replace the device name, then the existing IP by the fail over/ additional one that you have received by email:

DEVICE="eth1"
BOOTPROTO="static"
IPADDR="IP.FAIL.OVER"
NETMASK="255.255.255.255"
ONBOOT="yes"
BROADCAST="IP.FAIL.OVER"

The broadcast is always the same as the additional ip you wish to add.


3. Now you just have to assemble the new interface that we have just added:

ifup eth1

At the time of reboot, the interface will automatically be assembled.


4. IP test

If operations 1 to 3 have been correctly carried out, the IP shown in eth1 file must be pingable from another machine and answer to the requests.
If you have several additional IPs; you can renew the operation by using eth1, eth0:2 and so on.
If after handling, your IP doesn’t answer to the pings, please contact our support.


Was this answer helpful?

« Back