Shravan helps you modify
the IP address range of
your VPC or VPC subnet

shravan_0918

How do I change the IPv4 CIDR block of my Amazon Virtual Private Cloud (Amazon VPC)?

It's not possible to modify the IP address range of an existing VPC or subnet. You must delete the VPC or subnet, and then create a new VPC or subnet with your preferred CIDR block.

To extend the IPv4 address range of your VPC, you can add an additional IPv4 CIDR block.

Add a IPv4 CIDR block to your VPC

To extend the IPv4 address range of your VPC, see Associating a Secondary IPv4 CIDR Block with Your VPC.

Recreate your VPC with a different IPv4 CIDR block

If extending your VPC's IP address range with an additional IPv4 CIDR block isn't useful, delete and then recreate the VPC with your preferred IPv4 CIDR block.

  1. Create Amazon Machine Images (AMIs) or snapshots of existing resources.
  2. Delete all underlying resources in your VPC. This includes terminating all instances running in the VPC, deleting all security groups associated with the VPC (except the default one), deleting all route tables associated with the VPC (except the default one), and so on.
  3. Delete your VPC.
  4. Create a new VPC with your preferred IPv4 CIDR block.
  5. Restore your resources as necessary using the AMIs or snapshots you created in the first step.

Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center.

Published: 2015-05-29

Updated: 2019-03-21