Unassigning a Reserved Public IP

Unassign a reserved public IP object in Oracle Cloud Infrastructure.

    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 assign 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 uses the private IP address.
    5. Select the IP administration tab to display the VNIC's primary private IP address and any secondary private IP addresses.
    6. For the private IP to which you want to assign the public address, select the Actions menu (three dots), and select Edit.
    7. If the private IP address already has a public IP assigned to it, unassign it as follows:
      1. Under Public IP type, select n for No public IP.
      2. Select Update.
      3. Again for the private IP address, select the Actions menu (three dots), and select Edit.
    8. Under Public IP Type, select Reserved Public IP, and then select the Select Existing Reserved IP Address option.
    9. In the Reserved IP Address list, select the reserved public IP object that you want to assign, changing the compartment as needed.

      The public IP object is moved from the private IP address that it's currently assigned to.

    10. Select Update.
  • Use the network public-ip update command and required parameters to unassign a reserved public IP address from a private IP:

    oci network public-ip update --public-ip-id 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 unassign a reserved public IP address from a private IP address.