Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Multiple Shared IPs in WHM  (Read 2439 times)

0 Members and 1 Guest are viewing this topic.

Haripriya H

  • Guest
Multiple Shared IPs in WHM
« on: January 11, 2014, 01:10:39 pm »
As we all know that there is no  direct option available in cPanel/WHM  to create multiple shared IP’s and assigning dedicated IP for each domain is not feasible as it will cost you a lot of money.

So, you need to create multiple shared IP’s to  distribute 1 IP  between  many domains and here is how you can achieve this with cPanel  servers ::

Create a directory called /var/cpanel/mainips/, if it doesn’t exist

  • mkdir -p /var/cpanel/mainips/


Then, create a file  /var/cpanel/mainips/root and add the list of IP’s that you want to share

 
  • vi /var/cpanel/mainips/root

 10.10.10.1
 10.10.10.2
 10.10.10.3
 :wq!
 save and quit.
 

That’s all and you can see the status of new IPs as Main/shared IP for root from WHM>>Home>>IP Functions>>Show/Edit Reserved IPs.