Stavane

Add an extra IPv4 address

Every server comes with one public IPv4 address. When a service needs an address of its own, you can add more. You pay for every hour an extra address is assigned, never more than the monthly price.

Add one

  1. Open Servers in the console and choose your server.
  2. Open its network tab and choose Add address. You see the price before you confirm.

The address is assigned at once. The console shows it with its netmask and gateway.

Set it up inside the server

A server that already runs does not use the new address by itself: add it to its network settings. A server that you rebuild after adding the address gets it in its network configuration with the rest. First find the name of the network interface:

ip -br addr

The interface that carries the first address of the server is the one to use, for example eth0 or ens3. To try the new address straight away, add it by hand. A netmask of 255.255.255.0 is /24:

sudo ip addr add 203.0.113.25/24 dev eth0

This lasts until the next restart. To keep it, add it to the network configuration of your system. On Ubuntu, which uses netplan, create /etc/netplan/60-extra-address.yaml:

network:
  version: 2
  ethernets:
    eth0:
      addresses:
        - 203.0.113.25/24

Then run sudo netplan apply. Use your own interface name and address; 203.0.113.25 is only an example.

Reverse DNS

An extra address can have its own reverse name, set the same way as for the first address. See Reverse DNS.

Move it to another server

An extra address can move to another of your servers in the same location, for example when you replace a server and want to keep the address. Choose Move next to the address and pick the server; the button is there when you have another server in that location. Take the address out of the network settings of the first server before you move it, and add it on the other one afterwards. What it costs stays the same.

Remove it

Choose Remove next to the address and type the address to confirm. It goes back to the pool and can be given to somebody else. Take it out of the network settings of the server first.