Skip to main content

How to change the private IP of a server

Comments

6 comments

  • cPanelLauren
    Hello, We've been asked for something like this a couple of times and I've opened a case to have a tutorial/guide created for users. Right now though, we don't have a guide or a best practice for this specific circumstance. You might want to check out the following though:
    0
  • coursevector
    The documentation didn't help too much. I had to make another attempt. I did the same steps i listed before: 1. Changing the public IP in "Basic WHM Setup" to the correct public IP 2. Running /scripts/build_cpnat 3. Running /scripts/rebuildhttpdconf 4. Running /scripts/restartsrv_apache But this time did: 5. /usr/local/cpanel/scripts/updateuserdomains 6. /scripts/rebuildippool 7. IP Migration Wizard and up until step 7, nothing worked. But running through the migration wizard seemed to fix it for me this time. At this point i consider it black magic and just throw spaghetti at the wall until something works. =( Looking forward to a definitive guide on this!
    0
  • cPanelLauren
    I'm so happy it worked this time!
    At this point i consider it black magic and just throw spaghetti at the wall until something works.

    I'm sorry, but I can't stop laughing at this.
    Looking forward to a definitive guide on this!

    This might not happen for a little bit but I will most certainly update here when we get something written up.
    0
  • IndicHosts.net
    Incase you are still wondering, here's what we follow
    • After restoring snapshot, assign static IPv4 to new VM
    • WHM > Basic WHM Setup - Update the new static IPv4
    • WHM > Basic WHM Setup - Update the new IPv6 (or remove /leave blank)
    • WHM > IP Migration Wizard - Update NAT's Private IPv4 from one in snapshot to new Private IPv4 of VM
    • In case you use external DNS (R53, Domain Registrar, CF or else) update the DNS A records with new IPv4 / IPv6
    Give it a few minutes and your up.
    0
  • cPanelAnthony
    Thanks for sharing your solution!
    0
  • RNTRICE
    Incase you are still wondering, here's what we follow
    • After restoring snapshot, assign static IPv4 to new VM
    • WHM > Basic WHM Setup - Update the new static IPv4
    • WHM > Basic WHM Setup - Update the new IPv6 (or remove /leave blank)
    • WHM > IP Migration Wizard - Update NAT's Private IPv4 from one in snapshot to new Private IPv4 of VM
    • In case you use external DNS (R53, Domain Registrar, CF or else) update the DNS A records with new IPv4 / IPv6
    Give it a few minutes and your up.

    Damn, Thanks, man! I was in a bad place until I came across your post!
    0

Please sign in to leave a comment.