How to delete an IP address via SSH from your cPanel server

How to delete an IP address via SSH from your cPanel server

Normally, you delete an IP address by logging into WHM and removing the it using the function “Show or delete current IP address” under “IP functions” .

Alternatively you can remove the IP in SSH via linux command.

nano /etc/ips

and now remove the line of the IP and then restart the ipaliases service by the command

service ipaliases restart
/scripts/rebuildippool

You can recheck if the IP has gone by using the command

ifconfig


Posted by aeterno

The author and creator Mimata from Indonesia who founded Mimata Back in 2018. He is passionate about all things tech and knows the Machine Learning, IoT, Micro Controller, and many others

Leave a Reply