Public IP Pools
A public IP pool is simply a set of IPv4 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.
IPv6 addresses do not use the IP Pools functionality described here. Instead, you can directly assign IPv6 prefixes to VCNs and subnets.
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.
See IP Management Limits for general information and requesting a service limit increase when necessary.
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 to work in.
For administrators: see IAM Policies for Networking.
Limits on IAM Resources
For a list of applicable limits and instructions for requesting a limit increase, see Service Limits. 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 and select Networking. Under IP management, select Public IP pools.
- Confirm you're viewing the region and compartment you're interested in.
- Open the navigation menu and select Networking. Under IP management, select Public IP pools.
- Click Create Public IP Pool.
- Give the pool a name. Avoid entering confidential information.
- Assign the Public IP pool to a compartment.
- Click Create Public IP Pool.
- Confirm you're viewing the region and compartment you're interested in.
- Open the navigation menu and select Networking. Under IP management, select Public IP pools.
- Select a public IP pool from the list and click Delete Public IP Pool.
- 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.
- Confirm you're viewing the region and compartment you're interested in.
- Open the navigation menu and select Networking. Under IP management, select Public IP pools.
- Click Rename Public IP Pool.
- Enter a new name for the public IP pool. Avoid entering confidential information.
- Click Save Changes.
- Confirm you're viewing the region and compartment you're interested in.
- Open the navigation menu and select Networking. Under IP management, select Public IP pools.
- 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.
- Confirm you're viewing the region and compartment you're interested in.
- Open the navigation menu and select Networking. Under IP management, select BYOIP.
- Click on the 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.
- Confirm you're viewing the region and compartment you're interested in.
- Open the navigation menu and select Networking. Under IP management, select Public IP pools.
- Click the name of a public IP pool from the list.
- 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.
- Confirm you're viewing the region and compartment you're interested in.
- Open the navigation menu and select Networking. Under IP management, select Public IP pools.
- Click the name of a public IP pool from the list.
- 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
For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.
To manage the Public IP Pool object, use these operations: