How to order and add an IP address to VDS

179

How to Order Additional IP Addresses

  1. Go to the billing panel, select the "Virtual Servers" section from the left sidebar, then click on your VDS and the "IP Addresses" button.

    IP Addresses
    IP Addresses
  2. You will see all available IP addresses for the server. Click the "Order" button to add new ones.

    Order New IPs
    Order New IPs
  3. Specify the number of addresses and click the "Restart Server" button.

    Restart Server
    Restart Server
  4. After your order is processed, the new IP addresses, along with the mask and gateway, will appear on the same page.

    New IP Addresses
    New IP Addresses
  5. The control panel will automatically add the new IP addresses to your virtual server's network configuration. This means no additional settings are required; you can start using the added IPs immediately.

How to Replace the Primary IP with Another

Since the control panel automatically adds new IPs to your VDS network configuration, you can start using them right away. However, there might be a situation where you need to completely change the main (primary) IP of the server and make the old one inaccessible. To do this, follow these steps:

  1. Order an additional IP as shown in the first section of this guide.
  2. Connect to your server via SSH or through VNC in the VMmanager panel.
  3. Follow the further instructions based on the operating system installed on your VDS:

Debian and Ubuntu

  1. Install the text editor nano, if it is not available, with the command: apt-get install nano

  2. Open the network configuration file: nano /etc/network/interfaces

  3. Initially, the content of the file will look approximately as shown in the screenshot: here in the eth0 section are the settings for the main IP, and in the eth0:0…eth0:N sections are all the additional ones:

    Network Configuration
    Network Configuration
  4. Since we want to change the main IP address of the server and make the old one inaccessible, we need to remove the section where the settings for the new IP that we will use are written, and move it to the eth0 section, in the address line. The finished file should look approximately like this:

    Finished File
    Finished File
  5. To save the file press CTRL and O, then Enter. To close the editor press CTRL + X.

  6. All that is left is to restart the network and reconnect using the new IP address: service networking restart

CentOS

  1. Install the text editor nano, if it is not available, with the command: yum install nano

  2. Navigate to the folder where the network configuration files are located: cd /etc/sysconfig/network-scripts/

  3. There are many files here, but we are only interested in those prefixed with -eth0. In the file ifcfg-eth0 the main IP of the server is written, in the files ifcfg-eth0:0…ifcfg-eth0:N will be all the additional ones that you order:

    Configuration Files
    Configuration Files
  4. Since we want to change the main IP address of the server and make the old one inaccessible, we need to delete the file where the settings for the new IP that we will use are written and move it to the ifcfg-eth0 file, in the IPADDR line. Delete: rm -rf ifcfg-eth0:0. Open and edit: nano ifcfg-eth0

    Editing ifcfg-eth0
    Editing ifcfg-eth0
  5. To save the file press CTRL and O, then Enter. To close the editor press CTRL + X.

  6. All that is left is to restart the network and reconnect using the new IP address: service network restart.

We value your privacy

We use cookies and process your IP address to personalize content, detect your location for regional pricing, analyze site traffic, and show relevant ads. We share data with our analytics and advertising partners. Click "Accept All" to consent to all cookies, or "Reject All" to decline non-essential cookies. Some essential cookies will always be used for the site to function. Learn more in our Privacy Policy