Interview Prep/Networking/Addressing, CIDR & Routing

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 →

  1. Confirm per-flow load balancing and which tunnel each direction uses with flow logs and tcpdump
  2. Make the NAT instance a single egress point or give each tunnel its own NAT range
  3. Prefer active/standby (higher local preference on one tunnel) when state cannot be shared
  4. 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.

All Networking questions Roadmap: Networking for DevOps

More on Addressing, CIDR & Routing