How Thousands of AWS Accounts Use the Same 10.0.0.1 IP Without Colliding (VPC Under the Hood)
Almost every AWS account uses 10.0.0.0/16 or 172.31.0.0/16, meaning thousands of EC2 instances on the same physical servers share identical IPs. Here is how AWS uses packet tagging and encapsulation on its internal network to create isolated VPCs.
When you create a new VPC in AWS, chances are you type in
10.0.0.0/16 —or you just use the default VPC, which is always 172.31.0.0/16 .Think about what that means inside an AWS data center. On a single physical server rack in
us-east-1 , there could be dozens of EC2 instances belonging to different customers, and every single one of them has the exact same private IP address: 10.0.1.10 .Yet their traffic never mixes, and when you click "Create VPC," AWS builds your entire private network in about two seconds.
That works because AWS isn't provisioning virtual routers or VLANs when you create a VPC. Under the hood, AWS runs one massive, flat physical network of its own, and your VPC is just a tag stamped onto your network packets.
1. AWS's real network vs. your virtual network
Inside an AWS region, every physical server sits on AWS's own internal network (often called the substrate network). Every physical host has its own real IP address on that internal AWS network, completely hidden from you.
When your EC2 instance sends a packet from
10.0.1.10 to 10.0.1.25 , your Linux OS genuinely believes there is a local Ethernet cable connecting those two 10.0.x.x machines.In reality, the physical routers inside the AWS data center have no idea what
10.0.1.10 is. If that raw packet touched the physical wire, the router wouldn't know which customer's 10.0.1.25 you were trying to reach.2. How packet tagging creates your VPC
The magic happens right before your packet leaves the physical server, inside the AWS Nitro card (the dedicated hardware chip managing networking on the host).
When your EC2 instance sends a packet, the Nitro chip intercepts it before it ever touches the physical network cable and does two things:
- It attaches a VPC Tag: Nitro stamps the packet header with a unique identifier representing your specific VPC (similar to an encapsulation header like VXLAN or Geneve). Even if two customers both use
10.0.1.10, inside AWS's hardware they look completely different:Tag: vpc-aaa | IP: 10.0.1.10versusTag: vpc-bbb | IP: 10.0.1.10.
- It wraps your packet inside an AWS packet: Nitro looks up which physical server in the data center is currently hosting your target instance (
10.0.1.25with tagvpc-aaa). It then wraps your entire packet inside a brand-new outer packet using AWS's real physical server IPs as the source and destination.
3. What travels across the wire
While the packet moves across the data center's physical switches and routers, the hardware only looks at the outer wrapper (AWS's own internal IPs). Your private
10.0.1.x addresses and your VPC tag are simply riding inside as payload.When the packet arrives at the destination physical server, that server's Nitro chip catches it and checks the VPC Tag:
- Does this tag match the VPC of the EC2 instance living on this port? If not, the hardware drops the packet immediately.
- If the tag matches, the Nitro chip strips off the outer AWS IP wrapper and removes the VPC tag.
- Finally, it hands the original, clean
10.0.1.10 -> 10.0.1.25packet to your destination EC2 instance.
To both of your EC2 instances, it feels like they are sitting alone on a private switch. Neither operating system ever sees the VPC tag or the physical AWS network underneath.
Why understanding this helps in practice
Once you realize a VPC is just metadata tagging and packet wrapping on top of a shared AWS network, several AWS behaviors make complete sense:
- Why creating a VPC is instant: Clicking "Create VPC" doesn't spin up any hardware or configure physical switches. It just registers a new VPC ID tag and IP range in AWS's central mapping database.
- Why VPC Peering fails when CIDRs overlap: Within AWS's physical network, two VPCs can use
10.0.0.0/16without issues because their tags are different. But if you try to peervpc-aaa(10.0.0.0/16) withvpc-bbb(10.0.0.0/16), AWS blocks you. Why? Because before the Nitro card can even attach a destination tag, it looks at the target IP (10.0.1.25) to decide which VPC tag to apply—and if both VPCs own that exact same IP range, the mapping service has no way to know whether you meant your own10.0.1.25or your peer's.
- Why Security Groups cost zero extra hops: Because the Nitro chip already inspects and tags every packet leaving and entering the instance, AWS evaluates your Security Group and NACL rules right there on the host's hardware card—without routing your traffic through a separate central firewall appliance.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article