Reserving an IP Address

You can reserve an IP address from the available tenant networks in a tenant. The reserved IP address can be a public or private IP address that you want to assign to an instance. The specified IP address must not be in use by an existing instance, and must be within the IP range of the vNet.

  1. Log in to the UI and go to the Self Service Portal.
  2. In the Self Service Portal, click the Networks tab.
  3. Select Tenant Networks and choose the network from which you want to reserve the IP address.
  4. Select a network from the list and click Add in the IP Reservation section.
    The Create IP Reservation window is displayed.
  5. Enter a name for the IP reservation.
  6. Enter the IP address that you want to reserve.
  7. Click OK.
The selected IP address in the subnet is reserved.

Reserving an IP Address Using the CLI or API

Use the following command to reserve an IP address in a network associated with a tenant:

oracle-compute add vnetreservation name vnet --ip

If you did not specify the IP address in the command, then an IP address from the set of available IP addresses assigned to the vnet is automatically reserved.

For more information, see CLI Reference for Oracle Compute Cloud Service.

To reserve an IP address using the API, use the POST https://api.oc.example.com/vnetreservation/ method.

For more information, see REST API Reference for Oracle Compute Cloud Service.