How to change the IP address of a Plesk for Linux server

Comments

2 comments

  • Avatar
    Romeo Löffel

    Thanks Violeta

    Unfortunately I added the IP and was not able to remove it later. Other articles suggest, you edit the database, im not a fan of that.
    I found out that there is a command line tool to do the same:

    plesk bin subscription -u domain.com -ip 1.2.3.4


    Get all subs using

    plesk bin subscription -l 

    In theory it would be easy to create a shell script to loop through all subscriptions and change it to $ip.

    1
  • Avatar
    Ehud Ziegelman (Edited )

    Violet Altukhova

    I think the last NOTE comment is wrong, where you used twice the same IP, however it should have been the two different IPs mentioned.

     

    Note: Network interfaces are modified in runtime and config (e.g. if the IP address is to be changed to 203.0.113.2/32, while the interface has 203.0.113.2/24, or the main interface itself is to be changed) during the execution of the plesk bin ipmanage --remap utility. If the old IP address(es) are not needed anymore, remove them from Tools & Settings > IP Addresses and after that from the network interface manually. Vote for IP replacement on the interface on UserVoice.

    0

Please sign in to leave a comment.

Have more questions? Submit a request