Interview Prep/Networking/Addressing, CIDR & Routing

You need to renumber a live /16 VPC that is running out of space without downtime. How do you approach it?

AdvancedScenarioAddressing, CIDR & Routing
Answer

Situation read → You cannot change a VPC primary CIDR, but you can add CIDRs and move workloads onto them.

What I'd do →

  1. Associate a secondary CIDR with the VPC and create new subnets in it
  2. Update route tables, security groups and NACLs to allow the new ranges
  3. Launch new instances or node groups in the new subnets and shift traffic through the load balancer
  4. Drain and terminate the old instances, then remove the old subnets
  5. Keep DNS TTLs low and update any IP-based allow lists in partner systems first

Why → The VPC is only a container; subnets and instances are what you move, which allows a blue-green style migration.

Interview tip → Highlight external IP allow lists: partners hardcoding your IPs are what breaks a renumbering.

All Networking questions Roadmap: Networking for DevOps

More on Addressing, CIDR & Routing