For Linux VPS and migrated Cloud Servers with Ubuntu 24.04, 22.04, 20.04, or Debian 12, which are managed in the Cloud Panel

This article explains how to remove an additional public IPv4 address from a VPS or a migrated Cloud Server running Ubuntu 24.04, Ubuntu 22.04, Ubuntu 20.04, or Debian 12.

Requirement

You have cancelled the assignment of the additional public IPv4 or IPv6 address in the Cloud Panel.

  • Log in to the server.

  • Change to the directory in which the configuration file is located. To do this, enter the following command:

    [root@localhost ~]# cd /etc/netplan

  • Check the name of the configuration data and make a note of it. To do this, enter the following command:

    [root@localhost ~]# ls /etc/netplan

  • Open the configuration file. To do this, enter the following command:

    [root@localhost ~]# sudo vi etc/netplan/CONFIGURATION_FILE.yaml

    Example:

    [root@localhost ~]# vi etc/netplan/50-cloud-init.yaml

  • Delete the corresponding entries in the addresses section of the configuration file.

  • Restart the server so that the changes are applied. To do this, enter the following command:

    [root@localhost ~]# systemctl reboot