Reserving a Public IP Address

On Compute Cloud@Customer, you can reserve a public IP address that's available to assign to a private IP address object at a later time.

There are two types of public IPs:

  • Ephemeral: Think of it as temporary and existing for the lifetime of the instance.
  • Reserved: Think of it as persistent and existing beyond the lifetime of the instance it's assigned to. You can unassign it and then reassign it to another instance whenever you like.

For more information, see Public IP Addresses.

    1. In the Compute Cloud@Customer Console navigation menu, click Reserved Public IPs.

    2. Click Reserve Public IP Address.

    3. Enter the following information:

      • Reserved Public IP Address Name: (Required) Enter a name for the reserved address. Avoid entering confidential information.

      • Create in Compartment: Select the compartment in which to reserve the address.

      • IP Address Source: Select the source from which to reserve the address.

    4. Click Reserve Public IP.

      The new reserved public IP is created and displayed on the page. You can assign it to an instance if you like. See Assigning a Reserved Public IP Address to an Instance.

  • Use the oci network public-ip create command with the --lifetime option and required parameters to define how the public IP handled when it is deleted.

    oci network public-ip create --lifetime EPHEMERAL|RESERVED [OPTIONS]

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

  • Use the CreatePublicIp operation to define how the public IP handled when it is deleted.

    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.