routing traffic between VPC

1

Hello, I have two VPC(VPA A & VPC B) in same region. Both are associated with direct connect gateway and than to direct connect using private virtual interface.

Question.

How can I route traffic between two VPC without using transit gateway? Can we use VPC peering ?

Thanks in advance

已提问 2 年前756 查看次数
1 回答
1
已接受的回答

Hello,

Recommend checking below link which lists all the options for VPC to VPC connectivity and to answer your question, yes VPC Peering would work in your scenario.

Amazon VPC-to-Amazon VPC connectivity options


Specifically regarding DXGW (Direct connect gateway) you can not use it for east-west traffic between the VPCs, see below from the FAQ

Q: Can I send traffic from a VPC that is associated with an AWS Direct Connect gateway to another VPC associated to the same AWS Direct Connect gateway?

No, AWS Direct Connect gateway's only support routing traffic from AWS Direct Connect VIFs to VGW (associated with VPC). In order to send traffic between two VPCs, you must configure a VPC peering connection.


In a rare edge case you can make it work which is discussed here.

profile pictureAWS
专家
已回答 2 年前
profile pictureAWS
专家
已审核 2 年前

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

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

回答问题的准则