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.

Assign a new IP address to the primary network interface

Discussion in 'General Discussion' started by luissquall, Jul 9, 2014.

  1. luissquall

    luissquall Registered

    Joined:
    Jun 27, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    México
    cPanel Access Level:
    Root Administrator
    Hi,

    I used the IP Migration Wizard to change my server's primary address. In section Update your system startup scripts to reflect the new main IP address you say you have to update the IP address of the primary nic, eth1 in my case. I have one primary address attached to eth1 and 4 secondary ips attached to aliases eth1:cp{N}.

    Given I used one of this secondary ips in the Migration Wizard,

    1. Is it necessary to update the ifcfg-eth1 file with the new IP? As far as I understand all 5 ips point to the same server.

    2. If this change is required, after adding the new ip to ifcfg-eth1, what else should I do? Would I have to set the primary address as an alias? Could you give some hint on how to do this? I couldn't find any virtual interface (e.g. eth1:0) file like the mentioned in
    /http://www.tecmint.com/create-multiple-ip-addresses-to-one-single-network-interface/

    Thank you for your time.
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    WHM will only assign IP aliases, it will not change the configured network settings on your server. So yes, you need to change the IP in ifcfg-eth1 as well as possibly /etc/sysconfig/network (if your gateway is defined there), then restart networking services.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Yes, Vanessa is correct. There are no options in cPanel/WHM that will modify the network configuration itself. Please be careful when completing this on your own, as mistakes can lead to your server becoming inaccessible.

    Thank you.
     
  4. luissquall

    luissquall Registered

    Joined:
    Jun 27, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    México
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page