Skip to main content

Manual IP change instructions

Learn how to update your IP address without server reinstallation. Follow these step-by-step instructions to manually configure the network settings in Ubuntu.
Use only the IP address, prefix length, gateway, and DNS settings assigned to your VPS in Network Info. The addresses in the screenshots are examples. Keep the VNC console open because changing an IP address interrupts SSH connections.

Access portal and launch VNC

1

Log in to your

2

Enable your VNC server

3

Open VNC

Log in with your Ubuntu username and password. Use the console directly, or open Terminal if your installation has a graphical desktop.

Identify your network interface

Run these read-only commands in the VNC console:
The interface after dev in the default route is the one to inspect. Its name might be ens3, eth0, or something else. The loopback interface lo is not your public network interface.
Ubuntu terminal with the ens3 interface and default gateway highlighted

Reconstructed example with documentation-only addresses. Use the interface name shown on your VPS.


Edit the Netplan configuration file

Navigate to the Netplan directory:
Before editing, save a copy of the current Netplan configuration outside /etc/netplan/:
Open the configuration file (e.g., 50-cloud-init.yaml):
Note: The filename might be different on your system (e.g., 01-network-manager-all.yaml). Make sure to edit the correct file for your installation.

Change the IP address

  1. In the existing interface configuration, replace the old IPv4 address and prefix with the new values from Network Info.
  2. Update the IPv4 gateway if it changed. Keep your existing IPv6 settings, interface matching, renderer, and any special routes unless the new network assignment requires a change.
  3. Check the DNS settings. The resolver addresses below are examples; retain the resolvers appropriate for your VPS.
Nano editor showing an IPv4 address with prefix and default route highlighted

Reconstructed Netplan example. 192.0.2.20/24 and 192.0.2.1 are documentation values, not settings to copy.

The simplified example above is available as selectable text:
Edit the relevant values in your existing file; do not replace a more complete configuration with this simplified example. /24 is only an example prefix. Older Netplan files may use gateway4 instead of a default route; update the existing gateway setting rather than adding a duplicate. See the Netplan configuration reference.

Configure multiple IPs (optional)

Only add addresses that EDIS Global has assigned to this VPS. List each address under the same interface’s addresses key, keeping any existing IPv6 entries:
These are documentation examples. Use your assigned addresses and prefix lengths, and preserve the indentation required by the surrounding file. See Configure additional IP addresses for the dedicated guide.

Save configuration

  1. Press Ctrl + O to write the file.
  2. Press Enter to confirm the filename.
  3. Press Ctrl + X to exit.

Apply network changes

First validate the YAML, then try the configuration with a confirmation timeout:
If validation reports an error, fix it before continuing. During the trial, test connectivity to the new IP from your computer and check the gateway and DNS from the VPS. Confirm in the VNC console only when the configuration works. If you do not confirm, Netplan attempts to roll back. Keep VNC available and verify that both the running network and the files on disk are correct before rebooting; rollback has documented limitations. See Netplan’s try reference.

Verify configuration

Check your new IP configuration using either command:
Or check a specific interface:
(Replace ens3 with your actual network interface name)

Fast Ubuntu VPS: ready in minutes

Spin up a secure Ubuntu VPS with up to 8 vCPU cores. Instant setup, full root access, SSD/NVMe storage, and reliable global performance. Select your preferred hosting location and VPS plan, select Ubuntu 24.04, 22.04 or 20.04 LTS at checkout, and get started with full SSH access within minutes.
Last modified on October 4, 2026