How to change the IP address of Plesk server?

Follow

Comments

10 comments

  • Avatar
    Christopher Danks

    can you add a link to the windows version of this doc?

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello Christopher Danks

    For Windows, there's a separate article

    Here's the corresponding documentation.

    0
    Comment actions Permalink
  • Avatar
    SSP

    Thanks for the document, it works fine over Debian. But I have one question, when we execute the IP change:

     

    And check /etc/network/interfaces

    I can see:

    iface ens32:1 inet static
    address x.x.x.x
    netmask x.x.x.x
    auto ens32:1

     

    It is not necessary to add the gateway, network and broadcast?

     

    Thanks in advance

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello SSP

    I've compared it with a similar network subinterface on a test server. Looks like it's expected.

    Also, let me note that Plesk reconfiguration doesn't change these settings by design. Feel free to make adjustments if necessary. 

    0
    Comment actions Permalink
  • Avatar
    SSP (Edited )

    Thanks a lot. Can anyone explain who can we delete the old ip once the ip is changed? I have debian server and after a reboot the old IP comes again. And this is a very big problem as the domains start to send mail from that IP, SPF records are wrong and mail is returned.

     

    So it will be a big help for me if somebody can tell me how to delete the old IP permanently from the server to use only the new one.

     

    I delete the old IP:

    ip addr del x.x.x.x/24 dev ens192

     

    But after reboot the IP comes again:

     

    2: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
        link/ether 00:0c:29:ee:e5:7c brd ff:ff:ff:ff:ff:ff
        inet x.x.x.x/24 brd x.x.x.255 scope global ens192
           valid_lft forever preferred_lft forever
        inet y.y.y.y/26 scope global ens192:1

    Where x.x.x.x is the old IP and y.y.y.y is the new one

    Thank you in advance

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello SSP

    Most probably you have a virtual server and this address is managed from the outside, Consider contacting server provider.

    0
    Comment actions Permalink
  • Avatar
    SSP (Edited )

    Hi Ivan,

    That is not the problem. If you **only** follow the KB article to change the IP for Plesk on a Debian box (and in other linux distros too I think), next time you reboot the server the old IP will come to the server.

    Also with the KB you don´t change the network, the broadcast and the gateway (if they are different), which will be critical in the server.

    So the Kb works to change the IP of plesk but if you don´t set the server correctly, you will have a big problem once the server is rebooted if the old IP still works.

    Best regards

    0
    Comment actions Permalink
  • Avatar
    Gary Gopinathan

    Hello,

    I have 2 IPs in the plesk and would like to change the current main IP to swap to the other IP as the main IP.

    Both the IPs are already in the system.

    How do i delete the current second IP, then go change the current main ip to a new ip?

    Thanks,

    Gary

     

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello SSP

    Yes, you're right, indeed some attention to the server's network configuration is still required.

    The aim of this utility is to set up Plesk to work with the new server configuration.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request