Skip to main content
After you order an additional IPv4 address, add it to your VPS’s network configuration. You do not need to reinstall the server.

Before you start

Open the VNC console and copy the additional address and prefix from the VPS Network tab. Keep the existing primary address, gateway and DNS settings. The commands below use eth0 and 192.0.2.20/24 as examples. Replace them with your interface and assigned address/prefix. Do not assume that every service uses /24.

Test the additional address

Find the active interface and existing route:
If the additional IP is not already listed, add it:
Test the address from another computer using a service that is listening on it. Check the firewall and application binding if the primary IP works but the additional one does not. You do not normally add another default gateway for a secondary address.
This change lasts only until the interface is reconfigured or the server restarts. Save it using the network manager already controlling the interface.

Save the configuration

Review the YAML files in /etc/netplan/ and back up the existing directory before editing. Find the entry for the active interface.Add the extra address to its existing addresses list. This excerpt shows a primary and additional address; it is not a replacement for your complete file:
Keep the existing primary address or DHCP setting, routes, DNS and renderer. Use spaces for YAML indentation. Check syntax, then try the settings with a rollback timeout:
While the prompt is open, test a second connection and confirm only if access works. If the change is rejected or times out, verify the old configuration was restored before continuing. See the Netplan examples.
Do not configure the same interface through two different network managers. If a file says it is generated by Cloud-Init or another tool, update the tool’s configuration so it does not overwrite your changes later.

Verify after a restart

During a maintenance window, restart the VPS and check ip -4 addr show dev eth0. Confirm that both the primary and additional IP still work. If not, restore the saved configuration through the console and review the network manager’s error messages.