Home » Categories » Multiple Categories

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.
1 (1)
Article Rating (1 Votes)
Rate this article
  • Icon PDFExport to PDF
Related Articles
How do I cancel my services?
Added on Tue, Mar 3, 2015
How can I access my server if I’ve lost access from my external connection?
Added on Tue, Mar 3, 2015
How can I upgrade or downgrade my server?
Added on Tue, Mar 3, 2015
How do I point a domain name to my virtual server?
Added on Thu, Apr 9, 2015