Why can't two VPCs with the same CIDR be peered?
BeginnerScenarioAddressing, CIDR & Routing
Answer
Situation read → A router cannot decide where to send 10.0.1.5 if both sides own that prefix.
What I'd do →
- Show the conflict: both route tables would need
10.0.0.0/16pointing at the peer and local at once - AWS rejects the peering request with an overlapping CIDR error
- Real options are re-IP one VPC, add a non-overlapping secondary CIDR for the shared workloads, or use PrivateLink for specific services
- Prevent it with a central IPAM, for example AWS VPC IPAM allocations
Why → Peering is pure routing with no NAT, so addresses must be globally unique inside the connected domain.
Interview tip → Offer PrivateLink as the answer when the requirement is only "expose one service" rather than full network reachability.
More on Addressing, CIDR & Routing
You own 10.0.0.0/16 for a new VPC and need separate /24 subnets for dev, QA and prod across two AZs. How do you carve it up?BeginnerA host is configured as 192.168.1.130/25. What network does it belong to and what is the broadcast address?BeginnerHow many usable IPs does an AWS subnet of /28 have?BeginnerA route table has 10.0.0.0/16 -> local and 10.0.1.0/24 -> vpn-gw. Where does a packet to 10.0.1.5 go?BeginnerA newly built server can ping everything in its subnet but nothing outside. What is the first thing you check?BeginnerYou are picking a private range for a new company network. Which RFC 1918 range do you choose and why?Beginner