Back to website
Back to website
There was a problem loading the comments.
How to change the primary IP addres of a WHM/cPanel server?
» Viewing Article
8 May 2019 7:30 AM
This is for
Steps in WHM:
Log into WHM and go to Basic cPanel & WHM Setup
Change the Primary IP here with the option that says "
The IP address (only one address) that will be used for setting up shared IP virtual hosts
Note: This might not actually be necessary.
Log in to SSH, and do the following:
Change the IPADDR and GATEWAY lines to match the new IP and Gateway for the new ip
Change the GATEWAY line here if it does not exist in the ifcfg-* file.
Remove the new primary IP from this file if it is present
Add the old primary IP to this file with the format ::
Replace the old primary IP with the new primary IP
Replace the old primary IP with the new one if needed. The hostname's dns will need to be updated too
Restart the network service to make the new IP the primary
service network restart
Note: You're probably going to be disconnected at this point, and have to log in to ssh using the new primary ip.
Restart the ipaliases script to bring up the additional IP
service ipaliases restart
Run ifconfig and make sure all IPs show up correctly.
Did you find this article useful?
Change service level (VPS Plans)
How to change an email account password in cPanel?
How to Change Language in cPanel?
MS SQL 2005 / 2008
— Video Tutorials
— SSL Certificates
Plesk Control Panel
— Plesk Video Tutorials
Linux Server Tasks
Flexible Windows VPS
Manage SmarterMail 16
ScalElastic PaaS Cloud
— cPanel Email Tutorial
— cPanel Database Tutorial
— cPanel Files Tutorial
— cPanel Domains Tutorial
— cPanel Metrics Tutorials
— cPanel Security Tutorial
— cPanel Software Tutorial
— cPanel Advance Tutorial
— cPanel Preferences Tutorial
Backup & Data Protection (Acronis)
— Office 365 Backup
© Softsys Hosting