Search for:

Available article translations:

How do I replace IP addresses in Parallels Plesk?

Article ID: 943, created on Oct 6, 2008, last review on Nov 24, 2014

  • Parallels Plesk 11.0 for Linux
  • Parallels Plesk 11.5 for Linux


How do I replace IP addresses for objects in Parallels Plesk?


Note: Before manipulating the database, it is strongly recommended that you create a backup.

In the most simple case, where all your domains' IPs need to be updated to a single value, you can use the following script. Replace <IP address> with the IP you want domains to be switched to:

# mysql -Ns -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e 'select name from domains' | awk '{print "/usr/local/psa/bin/domain --update " $1 " -ip <IP address> "}' | sh

Also, you can omit the last | sh directive to preview the output of command before executing it.

If you need to perform a more complex IP change (e.g. if you have more than one destination IP and you need to specify which IP becomes which), you can use the script.

The utility ${PRODUCT_ROOT_D}/ is developed to replace IP addresses assigned to objects (domains/clients/resellers) in the Plesk database and to reconfigure object settings with the new IPs:

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

    /usr/local/psa/bin/ <map_file>

 If <map_file> doesn't exist, a template will be created. Otherwise,
it will be used to map IP addresses.

Follow these steps to perform the IP address replacement:

  1. Make sure the new IP addresses are not registered in Plesk on the Server > IP Addresses page. If they are, remove them before proceeding further.

  2. Run the utility to create the mapping template file:

    # /usr/local/psa/bin/

    Then, edit this file and set the appropriate IP mapping. Map file matches in the full list of the currently configured IP addresses with new ones in the following format:

    eth0: -> eth0:
    eth0: -> eth0:

    Edit the file and replace an IP address in the right part of a string with one from the new set:

    eth0: -> eth0:new_ip_address
  3. Once the mapping file contains an appropriate arrangement, run again:

    # /usr/local/psa/bin/

    It will read the mapping file and perform the replacement according to its content.

  4. Repair the configuration for Plesk services:

    # /usr/local/psa/bin/repair -r

Additional information

If you encounter issues, please refer to: "Changing IP address fails with error: no such network interface"

Search words:

too many open files

56797cefb1efc9130f7c48a7d1db0f0c 9f8baf78266b4e54525d1c6bf06305a5 c81e59b61af9dca603ba03b14aabe968 1bb40a2897c5fbbe5c9bd20451105ddc 824237ce663843af86f93897fbd8e2f8 6466998e13fbb5542838cb31b30870ec

Was this article helpful?
Tell us how we may improve it.
Yes No
Server Virtualization
- Parallels Cloud Server
- Parallels Containers for Windows 6.0
- Parallels Virtuozzo Containers
- Parallels Automation
- Parallels Automation for Cloud Infrastructure
- Parallels Business Automation Standard
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
- Web Presence Builder
- Parallels Plesk Automation
- Parallels Small Business Panel
- Value-added Services for Hosters
- Parallels Partner Storefront
Services & Resources
- Cloud Acceleration Services
- Professional Services
- Support Services
- Training & Certification