Question
How to change the IP address of the Plesk server?
Answer
For Windows, please refer the following article: How to change IP address for multiple subscriptions in Plesk for Windows
Note: The new IP should not be added under Plesk > Tools & Settings > IP Addresses before applying the instructions below. Remove it if it’s already added.
-
Connect to the server via SSH
Note: If direct SSH access to the server is not possible, contact a server administrator for further assistance.
-
Generate a mapping file with current Plesk IP addresses by running the command:
# plesk bin reconfigurator /root/ip_map_file_name
-
Edit the file
/root/ip_map_file_name
, for example, to change IP address203.0.113.2
to203.0.113.3
:Before edit:
venet0 203.0.113.2 255.255.255.255 -> venet0 203.0.113.2 255.255.255.255
After edit:
venet0 203.0.113.2 255.255.255.255 -> venet0 203.0.113.3 255.255.255.255
-
Reconfigure Plesk and its services by running the command again:
# plesk bin reconfigurator /root/ip_map_file_name
Note: reconfigurator.pl
script updates IP addresses in Plesk but does not do anything with the server network interface. If the old IP address(es) are not needed anymore, remove them from the network interface manually. Vote for IP replacement on interface on UserVoice.
Additional information
How to change the main (primary) IP address in Plesk for Linux