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

  • cloud vps, ssd vps, centos, add static ip
  • 0

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?".


這篇文章有幫助嗎?

« 返回