How to assign Multiple shared IPs in WHM



There is no direct option to add an additional shared IP in WHM. But you can add more shared IPs if you have SSH root access to the server.

You can add more shared IPs by following the steps shown below.

# cd /var/cpanel/mainips/

If there is no such directory, you have to create it.
   # mkdir -p /var/cpanel/mainips/

# vi /var/cpanel/mainips/root

Add the IPs in this file one by one separated by new line, each line is an additional shared IP in WHM.

If you want to add 11.22.33.44 and 44.33.22.11 as shared IPs, You will get a result as follows.

# cat /var/cpanel/mainips/root
  11.22.33.44
  44.33.22.11

Now if you login to WHM and

Home » IP Functions » Show/Edit Reserved IPs

You can see the status of new IPs as 'Main/shared IP for root'.

Leave a Reply