The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to change Private IP

Discussion in 'Bind / DNS / Nameserver Issues' started by cuongvttt, Mar 4, 2015.

  1. cuongvttt

    cuongvttt Active Member

    Joined:
    Jun 26, 2008
    Messages:
    36
    Likes Received:
    1
    Trophy Points:
    6
    Dear All.


    I install CPanel server behind a firewall, so my server has two ip address.

    Private IP: 172.16.110.5
    Public IP : 103.27.x.x

    I using CentOS 6 64 bit and now i want to change Private IP of this server. I think when change Private IP then i have to change something on CPanel, so please show me how to do these steps.
     
    #1 cuongvttt, Mar 4, 2015
    Last edited: Mar 4, 2015
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please check to see if the following file exists on this system:

    Code:
    /var/cpanel/cpnat
    If it does, you should be able to run the following command after changing IP addresses:

    Code:
    /scripts/build_cpnat
    Also, ensure you update your cPanel license with the new IP address.

    Thank you.
     
  3. cuongvttt

    cuongvttt Active Member

    Joined:
    Jun 26, 2008
    Messages:
    36
    Likes Received:
    1
    Trophy Points:
    6
    Yes, I need to run /scripts/build_cpnat to update new priavte ip to map. Then update CPanel license.

    Thank you so much, Micheal.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page