How do I raise an additional IP address on my CentOS server?


If you have purchased an additional IP address from your Heart Internet Customer Area, you can then add it to your CentOS server.

  1. Log into your server via SSH
  2. Create a file to add the virtual network interface details
  3. Add the following lines into the file:

DEVICE=eth0:1
BOOTPROTO=static
ONBOOT=yes
IPADDR=[address]
NETMASK=[subnet mask]

  1. The IP address is the new address you want to raise, and the subnet mask can be found in your server’s control panel next to the IP address
  2. Save the file to the following location:

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

  1. If ifcfg-eth0:1 exists, switch to ifcfg-eth0:2, and so forth
  2. Restart the server using the following command:

service network restart

  1. When your server has rebooted, the IP address should work as normal.


Article ID: 51
Created On: Tue, Mar 3, 2015 at 3:56 PM
Last Updated On: Wed, Aug 18, 2021 at 1:48 PM

Online URL: https://www.heartinternet.uk/support/article/how-do-i-raise-an-additional-ip-address-on-my-centos-server.html