How Do I Add and Configure Additional IP Address(es) to my VPS on Debian&Ubuntu

In order to add additional IPv4 for your virtual server, you need to go to your orders page, select the required VPS and then select the “Add.IPs” section.
In this section, you will have an EDIT, by clicking on this you can add a new IPv4 address.

Additional IP price is $ 3

Next, to set up an alternate IP address in Debian and Ubuntu, follow these steps:

Log into your VPS using SSH. As the root user, open the /etc/network/interfaces file in your preferred text editor. Then add the following text to the file:

# The primary network interface
auto eth0:0
iface eth0:0 inet static
address xxx.xxx.xxx.xxx
netmask 255.255.255.0

Next, replace xxx.xxx.xxx.xxx with the new IP address that you want to add to your VPS. Then save the changes in the same /etc/network/interfaces file and then exit your text editor. To restart the network interfaces on your server, you need to run the command:

ifdown -a --exclude = lo; ifup -a --exclude = lo

To verify that the procedure completed successfully, enter the following command:

ifconfig

The new IP address must be associated with interface eth0.

Was this article helpful?

Related Articles

1 Comment

Leave A Comment?