• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Changing IPs

E

epak

Guest
Hi,

We use PXE boot loading to install the Operation system and control panel onto new servers. We want to use plesk as well. What would be the steps to change the ips on the new server. Can this be done manually? What files would need to be edited?


Thanks.
 
What distribution are you using? Redhat/Fedora/Centos linux servers store the primary IP configuration in /etc/sysconfig/network-scripts/ifcfg-eth0.

Look at that file and you will see how the IP data is stored. Changing it can be accomplished with a simple bash or perl script.

Rick
 
Hi,

thanks for the reply. I understand how to change the OS IPs. But I was wondering what files that Plesk stores IP information in. For example, cPanel uses a file called /etc/wwwacct which contains IP information for creating new accounts.


Thanks
 
Plesk has an IP mapping utility, the reconfigurator. To use it:

/usr/local/psa/bin reconfigurator.pl map_file

This will create a map file of all of the IPs on the box. Edit this file and then run the command again. It will make all replacements for you.
 
Back
Top