Assign a new IP address to the primary network interface

luissquall

Member
Jun 27, 2014
10
2
53
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
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.