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

  • ssd cloud vps, ssd vps, centos, ip configuration
  • 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. If assigned IP addresses are in a sequential range, you conuse a range file to configure all IPs at once. To do so, please follow the steps bellow:

  1. Login to your VPS via SSH or using the web console.
  2. Create a range interface file:

    vi /etc/sysconfig/network-scripts/ifcfg-eth0-range0
  3. Add following lines replacing IPADDR_START and IPADDR_END with start and end of your IP block as well as the PREFIX to corresponding CIDR for your subnet mask:

    IPADDR_START=192.168.1.10 IPADDR_END=192.168.1.254 PREFIX=24 CLONENUM_START=0
  4. Restart the networking service:

    systemctl restart networking

Esta resposta lhe foi útil?

« Retornar