Removing IPv4 Address Reservations in bulk

Remove all the existing reserved IP addresses in bulk.

    1. Open the navigation menu and click Networking. Under Virtual cloud networks, click the name of the VCN that you want.
    2. Under Resources, click Subnets.

      The subnets in the VCN are listed.

    3. Click the name of the subnet to access the Subnet Details page.
    4. Under Resources, click IPv4 Addresses.

      The IP addresses in the subnet are listed.

    5. To remove all IP address reservations in bulk, select the Name checkbox, and click Remove IP address reservation. You can also select several IP addresses individually.
    6. In the Remove IP address reservation dialog box, click Remove IP address reservation.
      All the existing reserved IP addresses in the Assigned state are unreserved excluding the ephemeral IP addresses.
  • Use the private-ip update command and required parameters to remove the private IP address reservation:

    oci network private-ip update --private-ip-id IP_address_OCID
    --hostname-label new_hostname_label ... [OPTIONS]
    Note

    If the reserved IPv4 address isn't attached to any instance or Virtual Network Interface Card (VNIC), then use the delete command to delete the reserved IPv4 address.

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

  • If the reserved IPv4 address is attached to any instance or Virtual Network Interface Card (VNIC), run the UpdatePrivateIp operation to remove an private IPv4 address reservation.
    Note

    If the reserved IPv4 address isn't attached to any instance or Virtual Network Interface Card (VNIC), then run the DeletePrivateIp operation to delete the reserved IPv4 address.