Transit Gateway routing table question

0

If I have 3 VPCs (say VPC1,2,3) attaching to a Transit Gateway. VPC3 is a security VPC with a firewall in it. I have a default route in VPC1 and VPC2 pointing to TGW. TGW has a default route pointing to VPC3. Will VPC1 directly communicate with VPC2 ?

thanks !!

gongya
질문됨 2달 전178회 조회
6개 답변
0

if I do not have Spoke TGW RT, only have three attachments on TGW for VPC1, VPC2, and VPC3 and one default route, can VPC1 communicate with VPC2 directly without via the firewall?

thanks a lot !!

gongya
답변함 2달 전
  • G'day,

    If you have single default Route then VPC1 and VPC2 cannot communicate with each other. With this setup [single default route] the TGW would not know to route the traffic to VPC's. The only route that TGW would know would be to route to Firewall VPC and not to other VPC's.

0

I do not quite understand your Spoke TGW RT.

gongya
답변함 2달 전
  • Spoke TGW Route Table would need to be associated with Firewall VPC attachment to route the traffic between VPC's once the traffic has been inspected by firewall.

0

Answer:

This depends on whether Transit gateway [TGW] Route table [RT] has routes pointing to VPC's [1 and 2] attachment

Detailed Explanation

All 3 VPC's connect to Transit Gateway.

VPC1 [Worloads] ---- TGW 
VPC 2 [Workloads] --- TGW
VPC3  [Firewall] --- TGW

Here there are 2 pointers to be considered

VPC Routing table:
[+] VPC RT can be pointed towards TGW
TGW Routing table: 
[+] Here is where you would need to check if you have routing between VPC1 and VPC2.

Ideal use-case wherein Firewall would be used for Inspection:

[+] Connect all 3 VPC's to TGW

VPC1 TGW attachment

VPC2 TGW attachment

VPC3 TGW attachment

TGW would have 2 Route tables namely

Firewall TGW RT - This would be associated with VPC1 and VPC2 TGW attachment
0.0.0.0/0 ---> VPC3 TGW attachment

Spoke TGW RT - This would be associated with VPC3 attachment
VPC1 CIDR -- VPC1 TGW attachment
VPC2 CIDR -- VPC2 TGW attachment

I hope this helps.

AWS
RiKa
답변함 2달 전
profile picture
전문가
Steve_M
검토됨 2달 전
0

Pleae find the digram attached if you want the traffic between both the VPC's to be inspected. Enter image description here

AWS
RiKa
답변함 2달 전
profile pictureAWS
전문가
검토됨 2달 전
0

sorry, I might not have been clear on my question. VCP1 (10.10.1.0/24), VPC2 (10.10.2.0/24) and VPC3 (10.10.3.0/24) are all attached to the same TGW route table. TGW has 3 static routes

  1. default route --> VP3
  2. 10.10.1.0/24 --> VPC1
  3. 10.10.2.0/24 --> VPC2 My question is the traffic between VPC1 and VPC2 goes through VPC3 or not .

My understanding is NOT. but I do not have AWS account to test.

thanks !!

gongya
답변함 2달 전
0

I think I know what I have missed. Only attaching VPC1 and VPC2 to the same route table is not enough to make traffic flow between VPC1 and VPC2, I need to propagate them to make traffic flow.

Am I right ? (I do not have access to AWS to test yet)

thanks for https://www.youtube.com/watch?v=j7Lcd0gHxg0&t=984s&pp=ygUYYXdzIHRyYW5zaXQgZ2F0ZXdheSBkZW1v

gongya
답변함 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠