• 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

Question Move server to another datacenter (ip range change)

pegasx

Basic Pleskian
Hello,

We need to move our server to another datacenter. All ip adresses which are used by server will be changed. There are 2 articles about changing ip adresses.



In one article this command is recommended:

Code:
plesk bin ipmanage --remap /root/ip_map_file_name

In another article, this one:

Code:
./reconfigurator <ip_map_file_name>

Firs one fails on Centos 6:

Code:
[root@mail ~]# plesk bin ipmanage --remap /root/ip_map_file_name
Unknown command: --remap



exit status 1
[root@mail ~]#


Which one should I use for colocation change (change all ip range of server)? And except network interfeaces, will postfix, qmail, bind, opendns ip configurations be changed manually after plesk ip replace command?

Thanks.
 
Firs one fails on Centos 6:

Code:
[root@mail ~]# plesk bin ipmanage --remap /root/ip_map_file_name
Unknown command: --remap



exit status 1
[root@mail ~]#
Looks like you have an outdated Plesk version on an unsupported OS. In this case your instruction may be following:

  1. Generate a mapping file with current Plesk IP addresses by running the command:
    Code:
    # plesk bin reconfigurator /root/ip_map_file_name
  2. Open the file /root/ip_map_file_name for editing. To switch all subscriptions from the IP address 203.0.113.2 to 203.0.113.3 edit the file as below:
    Before:
    venet0 203.0.113.2 255.255.255.255 -> venet0 203.0.113.2 255.255.255.255
    After:
    venet0 203.0.113.2 255.255.255.255 -> venet0 203.0.113.3 255.255.255.255
  3. Reconfigure Plesk and its services by running the command again:
    Code:
    # plesk bin reconfigurator /root/ip_map_file_name
 
Looks like you have an outdated Plesk version on an unsupported OS. In this case your instruction may be following:

Thanks Igor. Will this reconfigurator change ip configurations on network interfaces, postfix, qmail, bind, opendns or do i have to change them manually?
 
All should be reconfigured automatically, but I'm not sure about mentioned opendns. Is it something custom for your Plesk?
 
but I'm not sure about mentioned opendns. Is it something custom for your Plesk?

Sorry, of course it is not opendns, it is openssl, I replied in hurry.

Btw this reconfigurator does not include gateway ip adresses, I need to change it manually on network interfaces, I guess.
 
Looks like you have an outdated Plesk version on an unsupported OS. In this case your instruction may be following:

  1. Generate a mapping file with current Plesk IP addresses by running the command:
    Code:
    # plesk bin reconfigurator /root/ip_map_file_name
  2. Open the file /root/ip_map_file_name for editing. To switch all subscriptions from the IP address 203.0.113.2 to 203.0.113.3 edit the file as below:
    Before:
    venet0 203.0.113.2 255.255.255.255 -> venet0 203.0.113.2 255.255.255.255
    After:
    venet0 203.0.113.2 255.255.255.255 -> venet0 203.0.113.3 255.255.255.255
  3. Reconfigure Plesk and its services by running the command again:
    Code:
    # plesk bin reconfigurator /root/ip_map_file_name
I want to make a test with just one ip address. Should I remove the other ip addresses which will not be changed in ip_map_file or just leaving them without touching and only changing the ip which will be tested. What should I do? Thanks.
 
Hello again,

@IgorG

Now my network-scripts has been changed, reconfigurator created new ones and i changed old ip addreeses to new ones. So ifcfg-eth0:2 and ifcfg-eth0:5 has same ip, will it be a problem?

DEVICE="eth0:2"
IPADDR="xxx.xxx.xxx.91"
NETMASK="255.255.255.248"

DEVICE="eth0:5"
IPADDR="xxx.xxx.xxx.91"
NETMASK="255.255.255.248"
 
Back
Top