Reserving Existing IPv4 Addresses in Bulk

Update all the existing ephemeral IP addresses to a reserved IP addresses in bulk.

    1. On the Virtual Cloud Networks list page, select the VCN that contains the subnet that you want to work with. This takes you to the VCN's details page. If you need help finding the list page or the VCN, see Listing VCNs.
    2. On the VCN details page, perform one of the following actions depending on the option that you see:
      • Select the Subnets tab, then select the name of the subnet you want to work with.
      • Scroll down to the table following the VCN details, which lists the subnets in the VCN. Select the name of the subnet you want to work with.
    3. Perform the following actions depending on the option that you see:
      • Select the IP administration tab.
      • Under Resources, select IPv4 Addresses.
    4. To reserve all IP addresses in bulk, select the checkbox next to the Name header, and then from the Actions menu (three dots)above the list, select Reserve IP address. You can also select the checkboxes for several IP addresses individually.
    5. On the Add reserved IP address panel, select Reserve IP address.
      All the existing ephemeral IP addresses in the Assigned state are reserved excluding the secondary and already reserved IP addresses.
    6. Select Close.
  • 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.