This is a sticky unsupported subject. By default you can have site’s with dedicated IP addresses, sites on “A” shared IP address, or you can have a site that has addon domains within the same account that shares the shared or dedicated IP for that account. However, we recently worked with a client and their requirement was to group accounts by client and then assign each group a separate IP address. We encountered problems at first because we would assign one site an IP address. We would then use the Change Site’s IP Address tool or the Change Multiple Sites’ IP Addresses tool and the IP for the group of accounts wasn’t there. Here’s a quick fix:
Share IP addresses for a select set of accounts in cpanel:
Lets say you have domain1.com, domain2.com, and domain3.com on the same server and you want to keep them as individual accounts while allowing them to share an IP address.
1.) Login to the WHM and click Show IP Address Usage
2.) Find an available IP address that you would like to use and Copy it
3.) Click on Basic cPanel/WHM Setup – Main Shared Virtual Host IP – This should be your primary server IP (Write down this IP for future reference). Update this with the newly copied IP address that you’d like to use and click Save Changes
– Note this does not change any sites to this IP
4.) Click Change Multiple Sites’ IP Addresses
Locate and check the domains that should share this new IP i.e. domain1.com, domain2.com, domain3.com
5.) Click Change IPs of Selected Accounts
6.) Next to each site there should be a drop down box. Select the last option in each drop down box which should read:
0.0.0.0 (main shared IP) where 0.0.0.0 is the new IP for the sites to share
7.) Click Change IPs
You now have a group of accounts sharing the same IP in cpanel!
Important! – Once you are done Click on Basic cPanel/WHM Setup – Main Shared Virtual Host IP – replace this value with the original Main Shared Virtual Host IP and click Save Changes. If you don’t newly created accounts will receive the IP address that you just setup for a specific group.