Adding Additional IPs to your Server/VPS

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 helpful?

 Print this Article

Also Read

Electronic Box DNS (eBox)

We have had issues with clients on EBox formorly known as Electronic Box ADSL internet connections and wanted to provide information for our...

Filezilla Secure FTP Access to PureFTP

This guide will help you connect to your secure FTP account on our system. We recommend FileZilla as a software to connect to our services and this...

How to setup password-less sudo on Linux CentOS 7 & OpenStack

CentOS 7 Public Cloud - OpenstackTo create a user run the following command as root or another sudo capable user.useradd -m...

Secure IMAP Email Service

We offer two options to access your secure email account on our servers. We only support strong encryption for all our communications.The first...

DNS Servers (IPv4 & IPv6)

The official dns servers for Zenith Media Canada and its resellers. .ME DOMAIN   magi.zenithmedia.me caspar.zenithmedia.me...