A known issue in cPanel can cause add-on IPs to become unavailable after a server reboot or network restart. To resolve this problem, follow the steps outlined below:
- Add your Virtual Private Server's (VPS) primary IP address to the
/var/cpanel/mainip
file. This step is crucial for ensuring that your server's primary IP address is recognized and configured correctly. - Execute the command
'service ipaliases restart'
to bind the IP address to the virtual network interface. This command will restart the IP aliases service, which is responsible for managing IP addresses on your server. - To ensure that add-on IPs are added during the boot process, run the command
'chkconfig ipaliases on'
. This will enable the IP aliases service to start automatically during server startup. - After every network restart, make sure to run the command
'service ipaliases restart'
to ensure that your add-on IPs are properly configured and available.
Troubleshooting Tips:
If you encounter issues while resolving the additional IP loss, consider the following troubleshooting steps:
- Verify that your primary IP address is correctly added to the
/var/cpanel/mainip
file. - Check the IP aliases service status using the command
'service ipaliases status'
. - Inspect your server's system logs for any error messages related to IP address configuration or the IP aliases service.
Conclusion:
In conclusion, resolving additional IP loss after a reboot on a cPanel server requires careful configuration and troubleshooting. By following the steps outlined in this guide, you can ensure that your add-on IPs are properly configured and available after a server restart. Remember to verify your IP address configurations, check service statuses, and inspect system logs to troubleshoot any issues that may arise.