Configure a New IP Address on Online.net Server

Posted on July 24, 2019 at 5:49 pm

First you need to buy an additional IP address.

Then you can drag & drop it inside your server via the web interface.

Now you need to edit /etc/network/interfaces by adding this:

# Your new IP address (1)
auto enp1s0f0:0
iface enp1s0f0:0 inet static
address YOUR_FAILOVER_IP_HERE
netmask 255.255.255.255
 
# Your new IP address (2)
auto enp1s0f0:1
iface enp1s0f0:1 inet static
address YOUR_FAILOVER_IP_HERE
netmask 255.255.255.255
 
...

Replace YOUR_FAILOVER_IP_HERE with your new IP address(es).

Then type this command to enable the new IP address(es):

ifup enp1s0f0:0
ifup enp1s0f0:1
...

Type “ifconfig” to check if your new IP is active.

Updated on July 25, 2019 at 9:42 am

Receive updates via email

Other Posts

Updated Posts