Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Change of Main IP Address

Discussion in 'General Discussion' started by ehuk, Aug 18, 2009.

  1. ehuk

    ehuk Member

    Apr 10, 2008
    Likes Received:
    Trophy Points:
    Hi There,

    I am having trouble changing my "Main Shared Virtual Host IP".

    My setup is like the following:

    eth0 xx.xx.xx.120 (Current Main IP)
    eth0:0 xx.xx.xx.119

    I want 119 to be the main shared IP and 120 to be a dedicated IP for SSL. (Only hosting a single website).

    I have changed the setting in "Basic Setup" however whenever I go to the IP address list it says:

    xx.xx.xx.120 [Main Address] eth0

    I have tried swap eth0 and eth0:0 and just running .119 but nothing seems to work. I can't seem to tell WHM that the new Main Address is .119.

    I am sure there is an file I need to edit, but I can't seem to find anything.

    Any Ideas?
  2. thewebhosting

    thewebhosting Well-Known Member

    May 9, 2008
    Likes Received:
    Trophy Points:
    You can change the main server IP address in hosts file. The host file is located at /etc/hosts
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice