Setup VPN Site to Site backup DirectConnect

0

We have setup 1 DX with Private virtual interface attached directly to Virtual Private Gateway (without Transit Gateway and Direct Connect Gateway). In addition, we have 1 Site to Site VPN as backup (static routing). We have a few questions as follows:

  1. Which routes will take precedence by default in Virtual Private Gateway ( BGP DX propagated route or static VPN propagated route) ? How we can change this if they have same prefix?
  2. If DX down, it will be automatic failover to VPN in Virtual Private Gateway or we need config more? Thank you for your helping!!!
1 Answer
0

Q. Which routes will take precedence by default in Virtual Private Gateway ( BGP DX propagated route or static VPN propagated route) ? How we can change this if they have same prefix?

A. See below from the documentation

When a virtual private gateway receives routing information, it uses path selection to determine how to route traffic. Longest prefix match applies. If the prefixes are the same, then the virtual private gateway prioritizes routes as follows, from most preferred to least preferred:

  • BGP propagated routes from an AWS Direct Connect connection
  • Manually added static routes for a Site-to-Site VPN connection
  • BGP propagated routes from a Site-to-Site VPN connection
  • For matching prefixes where each Site-to-Site VPN connection uses BGP, the AS PATH is compared and the prefix with the shortest AS PATH is preferred.

Q. If DX down, it will be automatic failover to VPN in Virtual Private Gateway or we need config more?

A. You can have more specific prefixes advertised and propagated via DX and add less specific static prefix via VPN connection; with below setup DX route will be prioritized (Longest Prefix Match)

Example:

10.0.0.0/8 --> Static VPN Route Entry

10.0.0.0/24 --> DX Propagated

10.1.0.0/24 --> DX Propagated etc.

If DX goes down, the Propagated routes will be removed and traffic will take VPN connection route.

profile pictureAWS
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions