If you have purchased an additional IP address from your Heart Internet Customer Area, you can then add it to your CentOS server.
- Log into your server via SSH
- Create a file to add the virtual network interface details
- Add the following lines into the file:
DEVICE=eth0:1
BOOTPROTO=static
ONBOOT=yes
IPADDR=[address]
NETMASK=[subnet mask]
- 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
- Save the file to the following location:
/etc/sysconfig/network-scripts/ifcfg-eth0:1
- If ifcfg-eth0:1 exists, switch to ifcfg-eth0:2, and so forth
- Restart the server using the following command:
service network restart
- When your server has rebooted, the IP address should work as normal.