Knowledge base
How to switch IP address between instances?
Posted by Pomoc Oktawave on 17.03.2015 21:57
When creating an OCI instance, it receives one IP address that is marked as automatic one. This means that once you delete the IP or instance, you will irreversibly lose possessed addressing.

Alternatively, static IP address allows:

  • addressing migration between instances (keep in mind that the IP and OCI must be in the same subregion - check this FAQ: What is subregion?),
  • IP marked as static can be assigned to each newly created OCI, server created from a backup or any instance imported into our infrastructure from the outside (check this tutorial: How to import your own system image to Oktawave?).

In our guide, we will take the IP address from OCI instance called "Plesk" to instance named "instance2". We start in the Network Management section. Here we must set the IP address of the instance, that we want to mark as static.


Simply select the IP address (in our case, pinned to the server "Plesk"), and then click Set as static.


Now, without having to worry about losing the address, it can be unpinned from the: Services | OCI | Name of the instance | IP Addressing tab, there we must check the IP and click Delete. In the message window that appears, answer Yes. It is worth remembering that the IP address can be connected only to a single server, so before migrating it must first be removed from the original instance.


Note! If in this tab there is only one IP address, the attempt to remove it will result in error message, that instance must have at least one internal or external network interface as its lack prevents connection to the server (except for remote console that is available in the admin panel). The customer can unpinn all the IP addresses (external network interfaces) of the instance, which is often used solution for databases isolated from the public network - then the communication can be carried out using OPN private network (internal network interface).

The next step is to go to the instance where we want to add the removed IP address - in our case it is the instance "instance2". On the instance page, select IP Addressing | IPv4, then select the desired address from the list, ( Confirm by clicking Add.


That's all the steps, after a while the instance will be reconfigured and will have desired IP address.

(0 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.