Reassigning a Reserved Public IP to a Different Private IP

Move a reserved public IP object from one private IP address to another private IP address.

As an example, let's say that you want to move a reserved public IP object from private IP address A to private IP address B. First, you must ensure that private IP address B doesn't have a public IP address already assigned to it. Then, you assign the reserved public IP address to private IP address B. When you do so, it's automatically unassigned from private IP address A.

Note

IP CIDR addresses don't support assigning a public IP address.

    1. Open the navigation menu  and select Compute. Under Compute, select Instances.
    2. Select the compartment that contains the instance using the private IP address to which you want to unassign a public IP object.
    3. Select the name of the instance to view its details.
    4. On the Networking tab, go to the Attached VNICs section and select the VNIC that you're interested in.
    5. Select the IP administration tab to display the VNIC's primary private IP and any secondary private IPs.
    6. For private IP address to which you want to assign the reserved public IP object, select the Actions menu (three dots), and then select Edit.
    7. If the private IP address already has a public IP assigned to it, perform these steps:
      1. Under Public IP type section, select No public IP.
      2. Select Update.
      3. Again for the same private IP address 2, select the Actions menu (three dots), and then select Edit.
    8. Under the Public IP type section, select Reserved public IP.
    9. Select the Select Existing Reserved IP Address option.
    10. In the Reserved Public IP list, select the reserved public IP that you want to assign, changing the compartment as needed. The reserved public IP object is moved from the public IP it's assigned to.
    11. Select Update.
  • Use the network public-ip update command and required parameters to reassign a reserved public IP address to a different private IP:

    oci network public-ip update --public-ip-id new_public_IP_OCID --private-ip-id EMPTY_STRING ... [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the UpdatePublicIp operation to reassign a reserved public IP address from one private IP address to another.