How can I do mass IP addresses change in Plesk Control Panel?

Article ID: 943 
Last Review: Oct,6 2008
Author: Bezborodova Anastasiya APPLIES TO:
  • Plesk 7.5.x Reloaded
  • Plesk 8.x for Linux/Unix

Resolution

There is the special utility reconfigurator.pl in Plesk that allows you to change IPs in Plesk base and reconfigure domain settings with new IPs.

This utility is available in the /usr/local/psa/bin directory.

# /usr/local/psa/bin/reconfigurator.pl
 Plesk reconfigurator - utility to change IP addresses used by
 Plesk Server Administrator

 usage:
        /usr/local/psa/bin/reconfigurator.pl <map_file>

 If <map_file> doesn't exists - template will be created, otherwise
 it will be used to map IP addresses.


The new IP addresses must NOT exist in Server > IP Addresses list in Plesk control panel before replacement, they may be added on system level only. If IP addresses do not exist in the system, the utility will add new IPs to the system as well.

If you have already added new IP addresses into Plesk, please deassign it from all the domains/clients, then remove them from Plesk.

First, you have to run the command to create a template file. Then, edit the file to set an appropriate IP mapping and run the command once again. The map file will contain the list of your current IP addresses of the following format:

eth0:192.168.50.60 255.255.255.0 -> eth0:192.168.50.60 255.255.255.0
eth0:192.168.50.70 255.255.255.0 -> eth0:192.168.50.70 255.255.255.0


You'll need to edit the file with to-be IP addresses (please, note that to-be ones come on the right of an arrow sign):

eth0:192.168.50.60 255.255.255.0 -> eth0:new_ip_address 255.255.255.0

For example:

1. Run
/usr/local/psa/bin/reconfigurator.pl ip_map.txt

2. Modify created ip_map.txt file. If you made a misprint or corrupted the file, just remove it and start from 1. again.

3. Run again
/usr/local/psa/bin/reconfigurator.pl ip_map.txt

Additional information

If new IP addresses exist at Server -> IP Addresses you should remove them from Plesk database, IP addresses are stored in Plesk table psa.IP_Addresses.
Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
captcha *Please type the code you can see.
* - required fields