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 年前520 查看次数
1 回答
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
专家
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则