For VPS purchased after May 16, 2023

This article explains how to remove an additional public IPv4 address on a VPS running Ubuntu 20.04, 22.04, or Debian 12.

Prerequisite

You already unassigned the additional public IPv4 address in the Cloud Panel.

  • Log in to the server.

  • Open the etc/netplan/01-netcfg.yaml file. Enter the following command:

    [root@localhost ~]# sudo vi etc/netplan/01-netcfg.yaml

  • In the etc/netplan/01-netcfg.yaml file, delete the associated entries in the addresses section.

  • Restart the server to apply the changes. To do this, enter the following command:

    [root@localhost ~]# systemctl reboot