A public IP pool is simply a set of CIDR blocks allocated to a tenancy. These CIDR blocks can be all or part of a BYOIP CIDR block. Public IP CIDR blocks assigned to a pool are only available for your tenancy. Public IP pools are available as a source for IP allocation when launching a NAT gateway, load balancer, or compute instance. You can add more IP CIDR blocks to a public IP pool at any time. You can also:
- Create a Reserved IP: You can reserve individual IPs from your public IP pools. These reserved IP addresses can be attached to your resources.
- Direct launch from pool: You can launch resources with an IP directly allocated from a public IP pool without previously creating a reserved IP for that resource.
- Delete CIDR blocks and pools: You can delete the entire public IP pool or certain IP CIDR blocks within the pool, provided none of the IP addresses are currently attached or reserved.
Requirements and Preparation
- To use public IP pools with BYOIP addresses, you need to import your addresses.
- To reserve Oracle-supplied public IP addresses, select "Oracle" as the public IP pool when creating the reserved public IP address.
Limits and quotas
- You can create one or up to 10 public IP pools in a compartment.
- A public IP pool can have zero or more IP CIDR ranges assigned to it, with a minimum size of /28 to a maximum size of /24.
Required IAM Policy
To use Oracle Cloud Infrastructure, you must be granted security access in a policy by an administrator. This access is required whether you're using the Console or the REST API with an SDK, CLI, or other tool. If you get a message that you don’t have permission or are unauthorized, verify with your administrator what type of access you have and which compartment you should work in.
For administrators: see IAM Policies for Networking.
Limits on IAM Resources
See Service Limits for a list of applicable limits and instructions for requesting a limit increase. To set compartment-specific limits on a resource or resource family, administrators can use compartment quotas.
Managing IP pools using the console
- Confirm you're viewing the region and compartment you're interested in.
- Open the navigation menu. Under Core Infrastructure, go to Networking , go to IP Management, and click Public IP Pools.
- From the Public IP Pools list view, click Create Public IP Pool. The Create Public IP Pool screen appears.
- Give the pool a name. Avoid entering confidential information.
- Assign the Public IP pool to a compartment.
- Click Create Public IP Pool.
- From the Public IP Pools list view, select a public IP pool from the list and click Delete Public IP Pool. The Delete Public IP Pool verification screen appears.
- If there are no warnings or errors, click Delete Public IP Pool. If this public IP pool contains reserved public IP addresses currently in use, you can't delete the public IP pool.
- From the details view for a public IP pool, click Rename Public IP Pool.
- Enter a new name for the public IP pool. Avoid entering confidential information.
- Click Save Changes.
- From the details view for a public IP pool, click Add CIDR Blocks.
- Choose a named BYOIP CIDR block.
- Click Add CIDR Blocks.
To successfully remove a BYOIP CIDR block from a public IP pool, there must be no reserved public IP addresses from that address range. You may have to terminate one or more reserved public IP addresses.
- In the details page for your BYOIP CIDR block, click the Action Icon corresponding to the subrange you want to remove from a public IP pool, and then click Remove from Public IP Pool . A confirmation window appears.
- If you are sure you want to delete the BYOIP CIDR block, click Remove CIDR Block.
- In the details page for a public IP pool, click the Create Reserved Public IP button.
- Enter a name and specify the compartment for the new reserved public IP address. Avoid entering confidential information.
- When finished, click Create Reserved Public IP.
- From the details view for an IP pool, click the Move Public IP Pool button. An input screen appears.
- Choose a new compartment for the public IP pool.
- Click Move Public IP Pool.
Using the API
To manage the Public IP Pool object, use these operations: