Two VPN tunnels use ECMP and some flows break after you put a NAT device in the path. What went wrong?
AdvancedScenarioAddressing, CIDR & Routing
Answer
Situation read → ECMP hashing can send packets of one flow on different tunnels, and stateful NAT on one path never sees the other half.
What I'd do →
- Confirm per-flow load balancing and which tunnel each direction uses with flow logs and
tcpdump - Make the NAT instance a single egress point or give each tunnel its own NAT range
- Prefer active/standby (higher local preference on one tunnel) when state cannot be shared
- If you need ECMP, use Transit Gateway VPN attachments, which support ECMP, and keep NAT out of that path
Why → Stateful NAT and ECMP only combine safely if all packets of a flow take the same path.
Interview tip → Show you understand that per-flow hashing is deterministic but is not aware of NAT state.
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