Sunday, 28 September 2025

Instantly Assigning a Public IP to an Existing OCI Compute Instance

Assigning the Ephemeral Public IP

Follow these steps directly in the OCI Console:

Step 1: Navigate to Your Instance

  1. Log in to the OCI Console.

  2. Open the navigation menu () and go to Compute Instances.

  3. Select the Compartment where your instance is located.

  4. Click the Name of the target Compute instance.

Step 2: Locate the Primary VNIC

  1. On the Instance Details page, scroll down to the Resources section and click Attached VNICs.

  2. You will typically see one entry—the Primary VNIC. Click on its Name (which is usually a long string starting with ocid1.vnic...).

Step 3: Edit the Private IP Address

  1. On the VNIC Details page, navigate to Resources on the left and click IP Addresses.

  2. You will see a table listing the Primary Private IP Address. Notice the Public IP column currently shows "Not Assigned".

  3. Click the Actions menu () next to the private IP address and select Edit.

Step 4: Assign the Ephemeral Public IP

  1. The Edit Private IP Address dialog box will open.

  2. Under the Public IP Type section, select the radio button for Ephemeral public IP.

  3. (Optional) You can give the Ephemeral IP a name, but it is not required.

  4. Click the Update button.