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.

Change of Main IP Address

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

  1. ehuk

    ehuk Member

    Joined:
    Apr 10, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    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

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    You can change the main server IP address in hosts file. The host file is located at /etc/hosts
     
Loading...

Share This Page