-
Get in touch
- Servers 99 611 Gateway Blvd ,
South San Francisco ,
CA 94080 United States - sales@servers99.com
- Whatsapp : +1 312 910 5075
- Support : +1 234 285 8020
- Skype Name : live:.cid.fceb43fa6d632b51
In certain scenarios, a server may require multiple shared IPs. This can help group accounts by IP, mitigate traffic-related issues, or reduce the impact of a DDoS attack by isolating potential threats to a specific IP. By default, cPanel allows only one shared IP per server, but this limitation can be overcome using reseller accounts.
Reseller accounts offer enhanced functionality, including the ability to create multiple cPanel accounts and manage shared IP allocations. These accounts can leverage WHM for centralized management of IP addresses and domains. Here's how you can set up multiple shared IPs on a Servers99 cPanel server:
Step 1: Reserve IP Addresses in WHM
To configure multiple shared IPs, start by reserving the IPs:
- Log in to WHM.
- Navigate to Home >IP Functions >Reserved IPs.
- Add the IP addresses you wish to reserve,
one per line, in the format:
Copy Code
X.X.X.X Y.Y.Y.Y Z.Z.Z.Z
Alternatively, you can manually edit the /etc/reservedips file to include the IPs:
Copy Code
X.X.X.X=shared ip
Y.Y.Y.Y=shared ip
Z.Z.Z.Z=shared ip
Rebuild the IP pool by running the following command:
Copy Code
/scripts/rebuildippool
This ensures the reserved IPs are recognized by WHM and prevents their use in individual cPanel accounts unless specified.
Step 2: Create a Pool of Shared IPs
To allow multiple accounts to share the reserved IPs, you need to set up a shared IP pool:
- Create a directory for shared IPs:
Copy Code
mkdir /var/cpanel/mainips/
-
Inside this directory, create a file named
root:
Copy Code
vi /var/cpanel/mainips/root
-
Add all the reserved IP addresses into the
file, one per line:
Copy Code
X.X.X.X Y.Y.Y.Y Z.Z.Z.Z
Save and exit the file.
Step 3: Verify in WHM
After completing the configuration:
- Log in to WHM.
- Go to Home > IP Functions > Show/Edit Reserved IPs.
- Confirm the added IPs are displayed and properly labeled.
Additional Notes for Resellers
If you wish to allocate specific shared IPs for reseller accounts, replace /root in the directory path with the reseller's username. For example:
Copy Code
/var/cpanel/mainips/reseller_username
This allows the reseller to manage and assign multiple shared IPs to their cPanel accounts. By following these steps, you can successfully configure multiple shared IPs on your Servers99 cPanel server, improving resource management, traffic distribution, and security.