Course contentsShow
← Cloud and Infrastructure
Lesson 2200 of 2,98947. Advanced NetworkingFree lesson

High Availability VPN Connections

Implementing redundant VPN tunnels and dynamic routing for highly available hybrid connectivity.

High Availability VPN Connections

What you'll learn: How to eliminate single points of failure in your site-to-site VPN setup using redundant tunnels and dynamic routing.

The Problem with Single VPN Tunnels

A basic site-to-site VPN (as you learned in lesson 2198) typically uses one VPN gateway and one tunnel. If that gateway fails, your tunnel goes down, or network issues arise on a single path, your entire hybrid connectivity disappears. For production workloads, this isn't acceptable.

Building Redundancy

High availability VPN connections use multiple redundant components:

  • Dual VPN gateways in your cloud VPC (ideally in different availability zones)
  • Multiple tunnels from your on-premises device to each cloud gateway
  • Dynamic routing protocols (like BGP) to automatically failover between tunnels

Think of it like having two bridges connecting an island to the mainland. If one bridge closes for maintenance, traffic automatically reroutes over the other—no manual intervention needed.

How Dynamic Routing Enables HA

Static routes require manual updates when a tunnel fails. With BGP (Border Gateway Protocol), each VPN gateway advertises routes with health checks. When a tunnel goes down:

  1. BGP detects the failure through missing keepalive packets
  2. Routes through the failed tunnel are withdrawn
  3. Traffic automatically shifts to the remaining healthy tunnel(s)
  4. When the tunnel recovers, BGP rebalances traffic

Typical HA Configuration

For maximum resilience, you'll configure:

  • Two customer gateway devices on-premises (if possible)
  • Two VPN gateways in the cloud (different AZs)
  • Four total tunnels (2x2 mesh)
  • BGP sessions on each tunnel with appropriate weights/priorities

This creates multiple independent failure domains—any single component can fail without connectivity loss.

Key Takeaway: High availability VPN connections use redundant gateways, multiple tunnels, and dynamic routing (BGP) to automatically maintain hybrid connectivity even when individual components fail, eliminating manual intervention and downtime.