Design IPv6 adoption for a dual-stack app to reduce NAT costs.
AdvancedScenarioVPC and Networking
Answer
Situation read → IPv6 addresses are globally routable, so private egress uses an egress-only internet gateway instead of NAT.
What I'd do →
- Associate an Amazon-provided /56 with the VPC and /64 with subnets
- Add
::/0 -> eigw-0abcin private route tables - Enable dual-stack on the ALB (
--ip-address-type dualstack) - Update SGs with IPv6 rules
- Keep NAT64 and DNS64 for IPv4-only destinations
Why → IPv6 egress via EIGW has no hourly or per-GB NAT fee, and public IPv4 addresses now cost money too.
Interview tip → Remember that public IPv4 charges began in 2024; it drives IPv6 interest.
More on VPC and Networking
What is a VPC and what are the CIDR constraints?BeginnerWhat makes a subnet public or private?BeginnerHow do route tables work, including the local route and longest-prefix match?IntermediateInternet Gateway vs NAT Gateway: what does each do?BeginnerNAT Gateway vs NAT instance?IntermediateSecurity group vs network ACL: compare them.Beginner