Deleting a Secondary Private IP Address

On Compute Cloud@Customer, you can delete a secondary IP address. You can't delete a VNIC primary private IP address.

On successful delete, the private IP address is returned to the pool of available addresses in the subnet. Any attached public IP address become available for assignment.

    1. In the Compute Cloud@Customer Console navigation menu, select Compute, then select Instances.
    2. At the top of the page, select the compartment that contains the instance for which you want to delete a secondary private IP address.
    3. Select the name of the instance.

      The instance details page is displayed.

    4. Under Resources, select Attached VNICs.

      The primary VNIC and any secondary VNICs attached to the instance are displayed.

    5. Select the name of the attached VNIC for which you want to delete a secondary private IP address.

    6. On the VNIC details page, under Resources, select IP Addresses.

    7. For the secondary private IP address that you want to delete, select the Actions menu (An image of the three dot icon.) and select Delete.

      Confirm the deletion.

    8. Log onto the instance and delete the configuration for the IP address from the instance OS.

      Undo the configuration you did when you added the IP address. See Configuring the Instance OS for a Secondary VNIC.

  • Use the network vnic unassign-private-ip command and required parameters to unassign a secondary private IP address from a VNIC.

    oci network vnic unassign-private-ip [OPTIONS]

    For a complete list of CLI commands, flags, and options, see the Command Line Reference.

  • Refer to the PrivateIp Reference for information about unassigning a secondary private IP address from a VNIC.

    For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.