Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

AWS Direct Connect private virtual interface routing example

Focus mode
AWS Direct Connect private virtual interface routing example - AWS Direct Connect

Consider the configuration where the AWS Direct Connect location 1 home Region is the same as the VPC home Region. There is a redundant AWS Direct Connect location in a different Region There are two private VIFs (VIF A and VIF B) from AWS Direct Connect location 1 (us-east-1) to the Direct Connect gateway. There is one private VIF (VIF C) from AWS Direct Connect location (us-west-1) to the Direct Connect gateway. To have AWS route traffic over VIF B before VIF A, set the AS_PATH attribute of VIF B to be shorter than the VIF A AS_PATH attribute.

The VIFs have the following configurations:

  • VIF A (in us-east-1) advertises 172.16.0.0/16 and has an AS_PATH attribute of 65001, 65001, 65001

  • VIF B (in us-east-1) advertises 172.16.0.0/16 and has an AS_PATH attribute of 65001, 65001

  • VIF C (in us-west-1) advertises 172.16.0.0/16 and has an AS_PATH attribute of 65001

Private VIF Routing no AS_PATH

If you change the CIDR range configuration of VIF C, routes that fall in to the VIF C CIDR range use VIF C because it has the longest prefix length.

  • VIF C (in us-west-1) advertises 172.16.0.0/24 and has an AS_PATH attribute of 65001

Private VIF Routing
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.