• 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

Howto configure my IP address

B

BMur

Guest
I'm new to Plesk and would like to know to how configure my main IP correctly.
I've searched and found some documention, however I'm still unsure how to do it properly:
I installed Plesk on a network when the IP address was 192.168.x.x, however I later placed the server in it's permanent location and the IP address there is 64.15.x.x.
First of all, in the Servers->IP Addresses area of plesk it shows both IP address. The Plesk manual mentions that you can't delete the main interface IP, however it seems like they've both become main interface IP's, since they both have greyed out checkboxes and I can't delete either one. I don't want the 192.168.x.x IP anymore, since it's invalid.
Second of all, I think I may be able to resolve this with reconfigurator.pl, however I'm not sure how. I've found information on how to CHANGE one IP address to another, however when creating the map file it lists both IP addresses:
eth0: 192.168.x.x 255.255.255.0 -> eth0: 192.168.x.x 255.255.255.0
eth0: 64.15.x.x 255.255.255.254 -> eth0: 64.15.x.x 255.255.255.254

If there was only the top line I would put the real IP address (64.15.x.x) on the first line after the "->", however that IP already has it's own line, which looks correct. Deleting the first line won't actually delete the IP address, but instead will tell the reconfigurator to simply not change that line.

I would really appreciate any advice I can get (I've already tried the "Re-Read IP Addresses" button in Plesk) .
 
Using the configurator change the first line to:

eth0: 192.168.x.x 255.255.255.0 ->64.15.x.x 255.255.255.254

And delete the second line - that should work.
 
Hello,

Same issue here.
Here is the map_file :
# You should edit IP addresses, netmasks and interfaces to reflect your
# future settings. If you don't want the IP to be changed - leave it untouched,
# comment out it's line or remove entire line from the file.

eth0:192.168.9.243 255.255.255.0 -> eth0:192.168.9.243 255.255.255.0
eth0:192.168.21.206 255.255.255.0 -> eth0:192.168.21.206 255.255.255.0

I want to delete the first IP so i deleted the second line and change the first one :
eth0:192.168.9.243 255.255.255.0 -> eth0:192.168.21.206 255.255.255.0

I then ran the command :
# perl /usr/local/psa/bin/reconfigurator.pl map_file
Using mapfile map_file - start checking
Can't perform mapping.
Error: IP address 192.168.21.206 is specified twice as a target
Mapping procedure stopped. Correct errors and try again
IP addresses weren't mapped

Any idea on how to remove this first IP ?

Thanks a lot.
 
Back
Top