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: Assign Multiple shared IPs in WHM  (Read 3260 times)

0 Members and 1 Guest are viewing this topic.

lijeshk

  • Guest
Assign Multiple shared IPs in WHM
« on: November 09, 2013, 10:50:57 am »

By default, WHM/cPanel allows only one shared IP while the rest are exclusive and can be used for only one domain. We cannot add "Multiple shared IPs" in WHM GUI, However, there is a way to have multiple shared IPs so that you could have spread out domains across all of those IPs. It’s possible to do so via SSH .


  • Login to the server as root:

Code: [Select]
#cd /var/cpanel/mainips
  • Create a /var/cpanel/mainips/ directory, if it doesn’t exist:

Code: [Select]
# mkdir -p /var/cpanel/mainips/
  • Add the current main shared IP and the secondary IP(s)


Code: [Select]
#vi /var/cpanel/mainips/root
Code: [Select]
#cat /var/cpanel/mainips/root
11.22.33.44
44.33.22.11

We can verify this from WHM>>Home>>IP Functions>>Show/Edit Reserved IPs, we can see the status of new IPs as 'Main/shared IP for root'.

--