Deleting a Private IP Address

Delete a private IP address from a VNIC.

Prerequisite: We recommend removing the IP address from the OS configuration before deleting it from the VNIC. See Configuring Linux to Use a Secondary Private IP Address or Configuring Windows to Use a Secondary IP Addresses.
Caution

If the private IP is the target of a route rule, deleting it from the VNIC causes the route rule to blackhole and the traffic is dropped.
    1. Open the navigation menu and click Compute. Under Compute, click Instances.
    2. Click the name of the instance to open its details page.
    3. Under Resources, click Attached VNICs.
    4. Click the VNIC that you're interested in.
    5. Under Resources, click IPv4 Addresses.
      The VNIC's associated IP addresses are listed in tabular form.
    6. Find the IP address you want to update, click thethe Actions menu (Actions Menu), and then click Delete Private IP.
    7. Confirm when prompted.
  • Use the Private-ip delete command and required parameters to delete a private IP address:

    oci network private-ip delete --private-ip-id IP_address_OCID ... [OPTIONS]

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

  • Run the DeletePrivateIp operation to delete a private IP address.