Can I create static route for the same CIDR in a single transit gateway route table, having **Resource type** one as peering and the other as VPC?

0

I have 2 transit gateways one is in us-east-2 account A another one in af-south-1 account B, I have created transit gateway peering connection between the TGW A and B. Can I create static route for the same CIDR in a single transit gateway route table, having Resource type one as peering and the other as VPC?

已提問 2 個月前檢視次數 336 次
1 個回答
0

No, you can't do that. While Transit Gateway supports attachments (VPCs, VPN, Direct Connect, other Transit Gateways, etc.) that have the same CIDR range you can't route to both of them (i.e. the same CIDR range) within a single route table.

If you imagine a world where you could do that (have a route for CIDR range A that points to destination X and destination Y), how would you route packets to A? Do you send packet 1 to X and packet 2 to Y and so on? If so, that would break your communications pretty badly.

profile pictureAWS
專家
已回答 2 個月前
profile picture
專家
已審閱 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南