How to configure additional IP addresses on a CentOS cloud server?

When you order additional IP addresses for your SSD Cloud VPS, by default only primary IP is configured on the VPS and you need to manually configure it on the OS. To do so, please follow the steps bellow:

  1. Login to your VPS via SSH or using the web console.
  2. For each IP address create a separate network config file by copying the primary interface file:

    cd /etc/sysconfig/network-scripts/
    cp ifcfg-eth0 ifcfg-eth0:0
  3. Edit the created file and modify IPADDR, NETMASK and GATEWAY fields according to details mentioned in "Assigned IPs" of your service information.
  4. Restart the networking service:

    systemctl restart networking

If the additional IPs assigned to your VPS in the same range, you can configure whole the IP block inside one config file. Fore more information, please read the article "How to configure a IP address range on a CentOS cloud VPS?".

  • cloud vps, ssd vps, centos, add static ip
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to configure an IP address range on a CentOS cloud server?

When you order additional IP addresses for your SSD Cloud VPS, by default only primary IP is...

How to re-install OS on a cloud server?

You can easily reinstall the OS of your choice on your cloud server/VPS by following instructions...

How to setup PPTP VPN server on CentOS 7

Below instructions will guide you through installing and configuring PPTP VPN...