Largest Domain Hosting Market

Domain, Hosting and Information Technology Related Web Site

How to change the primary IP addres of a WHM/cPanel server

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:

  • Edit /etc/sysconfig/network-scripts/ifcfg-eth0
    • Change the IPADDR and GATEWAY lines to match the new IP and Gateway for the new ip
  • Edit /etc/sysconfig/network
    • Change the GATEWAY line here if it does not exist in the ifcfg-* file.
  • Edit /etc/ips
    • Remove the new primary IP from this file if it is present
    • Add the old primary IP to this file with the format ::

  • Edit /var/cpanel/mainip
    • Replace the old primary IP with the new primary IP
  • Edit /etc/hosts
    • 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
  • Update the cpanel license to the new primary IP
  • Verify you can still log in to WHM and there is no license warning

Thank you

Share This:


Add a Comment
  1. ivermectin 3 mg dose – ivermecti stromectol pills

  2. doxycycline usa pharmacy – doxycycline 100 mg capsule doxycycline 150 mg tablets

  3. neurontin 600mg – buy neurontin canada levothyroxine 0.25 mg tablet

  4. cialis buy online – online pharmacy products

  5. generic vardenafil usa – vardenafil hcl buy vardenafil without prescription

  6. ivermectin over the counter uk – ivermectin buy uk stromectol prices

  7. buy accutane online canada – accutane coupon accutane for sale

  8. amoxil 250 – amoxicillin usa amoxicillin without a doctor’s prescription

  9. methylprednisolone 40 mg tablet – lyrica capsule generic lyrica canada cost

  10. term paper service – essay outline help dissertation writers online

  11. viagra generic online pharmacy – Buy viagra online cheap india viagra online

  12. buy tadalafil tablets – Cialis now cialis prescription australia

  13. where to buy stromectol – buy ivermectin for humans stromectole online

  14. cost of prednisone tablets – ordering prednisone prednisone 40mg

  15. lasix 20mg tablet price – purchase lasix lasix brand name in india

  16. can i buy ventolin over the counter in usa – ipratropium albuterol albuterol without prescription

  17. cytotec 200mg price – cytotec pills price cytotec order online uk

  18. doxycycline 100 capsules – doxycycline over the counter canada prednisolone 20 mg

  19. buy stromectol – stromectol medicine ivermectin 3mg price

  20. where to buy ivermectin for humans – stromectol cost in usa purchase stromectol

  21. generic sildenafil india – female sildenafil buy sildenafil online cheap

  22. viagra vs tadalafil – tadalafil canadian pharmacy cheap tadalafil

  23. buy nothing day essay – help with thesis write college essays for money

  24. ivermectin 12 mg – stromectol buy uk stromectol for head lice

  25. ordering viagra – buy online viagra canadian pharmacy tadalafil 20mg

  26. cenforce100usa – fildena 120 malegra 200 usa and uk

  27. xenical orlistat 120mg capsules – generic xenical alli orlistat starting dose

  28. ivermectin cream canada cost – stromectol tablet ivermectin buy nz

  29. sildenafil medication – viagra 25mg price viagra

  30. cialis pills uk – generic cialis 5mg australia

  31. prednisone sale – prednisone 5443 compare prednisone prices

  32. buy tadalafil online india – cialis us tadalafil without prescription

  33. ivermectin rx – buy stromectol usa buy ivermectin tablets

  34. cost of stromectol medication – ivermectin lotion ivermectin 1 cream 45gm

  35. canada generic sildenafil – rvigapll sildenafil citrate uk

  36. viagra online price comparison – sildenafil medication how to buy viagra usa

  37. tadalafil tablet online in india – cialis on line tadalafil tablets india

  38. buy generic tadalafil 20mg – Free cialis samples tadalafil price in south africa

  39. buy ivermectin 3mg – ivermectin usa price ivermectin 3 mg for people

  40. ocean casino online – casino online doubleu casino

  41. need essay written – how to write an essay about my life order research paper online

  42. where to buy female viagra in india – Low cost viagra viagra free delivery

  43. stromectol generico – ivermectin 12mg without prescription stromectol tab price

  44. stromectol tablets for humans for sale – ivermectin 3 mg without prescription price of ivermectin liquid

Leave a Reply

Your email address will not be published.

Domain Hosting Market © 2015