Manually allocate a CIDR to a pool to reserve IP address space - Amazon Virtual Private Cloud

Manually allocate a CIDR to a pool to reserve IP address space

Follow the steps in this section to manually allocate a CIDR to a pool. You might do this in order to reserve a CIDR within an IPAM pool for later use. You can also reserve space in your IPAM pool to represent an on-premises network. IPAM will manage that reservation for you and indicate if any CIDRs overlap with your on-premises IP space.

AWS Management Console
To manually allocate a CIDR
  1. Open the IPAM console at https://console.aws.amazon.com/ipam/.

  2. In the navigation pane, choose Pools.

  3. By default, the default private scope is selected. If you don’t want to use the default private scope, from the dropdown menu at the top of the content pane, choose the scope you want to use. For more information about scopes, see How IPAM works.

  4. In the content pane, choose a pool.

  5. Choose Actions > Create custom allocation.

  6. Choose whether to add a specific CIDR to allocate (for example, 10.0.0.0/24 for IPv4 or 2001:db8::/52 for IPv6) or add a CIDR by size by choosing the netmask length only (for example, /24 for IPv4 or /52 for IPv6).

  7. Choose Allocate.

  8. You can view the allocation in IPAM by choosing Pools in the navigation pane, choosing a pool, and viewing the Allocations tab for the pool.

Command line

The commands in this section link to the AWS CLI Reference documentation. The documentation provides detailed descriptions of the options that you can use when you run the commands.

Use the following AWS CLI commands to manually allocate a CIDR to a pool:

  1. Get the ID of the IPAM pool that you want to create the allocation in: describe-ipam-pools.

  2. Create the allocation: allocate-ipam-pool-cidr.

  3. View the allocation: get-ipam-pool-allocations.

To release a manually allocated CIDR, see Release an allocation.