Removing a Public IPv4 Address in a Linux server (CentOS 8)

In this article, we'll show you how to remove an additional public IPv4 address from a server where CentOS 8 is installed.


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

  • Log on to the server.

  • To check the existing network connections, enter the following command:
    [root@localhost ~]# nmcli connection show

  • To remove the additional, public IPv4 address from the network interface, enter the following command:
    [root@localhost ~]# sudo nmcli con mod Public_NETWORKINTERFACE -ipv4.addresses "IP ADDRESS"
    [root@localhost ~]# sudo nmcli con mod Public_ens192 -ipv4.addresses "12.345.678.90

  • Restart the server. To do this, enter the following command:
    [root@localhost ~]# sudo reboot

  • Log on to the server again.

  • To check if the IPv4 address has been removed, type the following command:
    [root@localhost ~]# ip addr