AWS Transit Gateway 시도해 보았습니다.
                                            
                                                
                                                
                                                
                                                
                                                
                                                 3032 단어  TransitGatewayvpcAWS
                    
1. 환경 준비
각 VPC에서 양방향으로 통신을 실시하고 싶습니다. 다음과 같이 두 가지 환경을 준비합니다.
---
A
B
VPC
10.0.0.0/16
172.16.0.0/16
subnet
10.0.0.0/24
172.16.0.0/24
EC2
10.0.0.10
172.16.0.20
SG
icmp 172.16.0.0/24
icmp 10.0.0.0/24
 2.Transit Gateway 만들기
Transit Gateway를 만듭니다.
 
 3.Transit Gateway Attachment 만들기
Transit Gateway에 VPC/subnet을 연결한다.
A
 
B
 
 4.Transit Gateway Route Table 생성 및 설정
이번은【2.Transit Gateway의 작성】으로,
Default route table assciation
Default route table propagation
에 체크를 했으므로 이미 작성되었습니다.
[Assciation] 【3.Transit Gateway Attachment의 작성】에서 첨부한 VPC/subnet이 루트 테이블에 끈을 붙이고 있는 것을 알 수 있습니다.
 
[Propagations] 연결한 리소스 간의 통신이 가능합니다.
 
[Routes]를 확인해 봅시다.
 
 5. 서브넷에서 Route Table 편집
A
172.16.0.0/24 tgw
 
B
10.0.0.0/24 tgw
 
 6.ping 테스트 해 보자
A→B
[ec2-user@ip-10-0-0-10 ~]$ ping -c 3 172.16.0.20
PING 172.16.0.20 (172.16.0.20) 56(84) bytes of data.
64 bytes from 172.16.0.20: icmp_seq=1 ttl=254 time=3.16 ms
64 bytes from 172.16.0.20: icmp_seq=2 ttl=254 time=2.77 ms
64 bytes from 172.16.0.20: icmp_seq=3 ttl=254 time=2.81 ms
B→A
[ec2-user@ip-172-16-0-20 ~]$ ping -c 3 10.0.0.10
PING 10.0.0.10 (10.0.0.10) 56(84) bytes of data.
64 bytes from 10.0.0.10: icmp_seq=1 ttl=254 time=3.13 ms
64 bytes from 10.0.0.10: icmp_seq=2 ttl=254 time=2.76 ms
64 bytes from 10.0.0.10: icmp_seq=3 ttl=254 time=2.74 ms
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(AWS Transit Gateway 시도해 보았습니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://qiita.com/leomaro7/items/8dd787211e1c860a57b0
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                 우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
Transit Gateway를 만듭니다.

3.Transit Gateway Attachment 만들기
Transit Gateway에 VPC/subnet을 연결한다.
A
 
B
 
 4.Transit Gateway Route Table 생성 및 설정
이번은【2.Transit Gateway의 작성】으로,
Default route table assciation
Default route table propagation
에 체크를 했으므로 이미 작성되었습니다.
[Assciation] 【3.Transit Gateway Attachment의 작성】에서 첨부한 VPC/subnet이 루트 테이블에 끈을 붙이고 있는 것을 알 수 있습니다.
 
[Propagations] 연결한 리소스 간의 통신이 가능합니다.
 
[Routes]를 확인해 봅시다.
 
 5. 서브넷에서 Route Table 편집
A
172.16.0.0/24 tgw
 
B
10.0.0.0/24 tgw
 
 6.ping 테스트 해 보자
A→B
[ec2-user@ip-10-0-0-10 ~]$ ping -c 3 172.16.0.20
PING 172.16.0.20 (172.16.0.20) 56(84) bytes of data.
64 bytes from 172.16.0.20: icmp_seq=1 ttl=254 time=3.16 ms
64 bytes from 172.16.0.20: icmp_seq=2 ttl=254 time=2.77 ms
64 bytes from 172.16.0.20: icmp_seq=3 ttl=254 time=2.81 ms
B→A
[ec2-user@ip-172-16-0-20 ~]$ ping -c 3 10.0.0.10
PING 10.0.0.10 (10.0.0.10) 56(84) bytes of data.
64 bytes from 10.0.0.10: icmp_seq=1 ttl=254 time=3.13 ms
64 bytes from 10.0.0.10: icmp_seq=2 ttl=254 time=2.76 ms
64 bytes from 10.0.0.10: icmp_seq=3 ttl=254 time=2.74 ms
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(AWS Transit Gateway 시도해 보았습니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://qiita.com/leomaro7/items/8dd787211e1c860a57b0
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                 우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
이번은【2.Transit Gateway의 작성】으로,
Default route table assciation
Default route table propagation
에 체크를 했으므로 이미 작성되었습니다.
[Assciation] 【3.Transit Gateway Attachment의 작성】에서 첨부한 VPC/subnet이 루트 테이블에 끈을 붙이고 있는 것을 알 수 있습니다.

[Propagations] 연결한 리소스 간의 통신이 가능합니다.

[Routes]를 확인해 봅시다.

5. 서브넷에서 Route Table 편집
A
172.16.0.0/24 tgw
 
B
10.0.0.0/24 tgw
 
 6.ping 테스트 해 보자
A→B
[ec2-user@ip-10-0-0-10 ~]$ ping -c 3 172.16.0.20
PING 172.16.0.20 (172.16.0.20) 56(84) bytes of data.
64 bytes from 172.16.0.20: icmp_seq=1 ttl=254 time=3.16 ms
64 bytes from 172.16.0.20: icmp_seq=2 ttl=254 time=2.77 ms
64 bytes from 172.16.0.20: icmp_seq=3 ttl=254 time=2.81 ms
B→A
[ec2-user@ip-172-16-0-20 ~]$ ping -c 3 10.0.0.10
PING 10.0.0.10 (10.0.0.10) 56(84) bytes of data.
64 bytes from 10.0.0.10: icmp_seq=1 ttl=254 time=3.13 ms
64 bytes from 10.0.0.10: icmp_seq=2 ttl=254 time=2.76 ms
64 bytes from 10.0.0.10: icmp_seq=3 ttl=254 time=2.74 ms
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(AWS Transit Gateway 시도해 보았습니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://qiita.com/leomaro7/items/8dd787211e1c860a57b0
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                 우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
A→B
[ec2-user@ip-10-0-0-10 ~]$ ping -c 3 172.16.0.20
PING 172.16.0.20 (172.16.0.20) 56(84) bytes of data.
64 bytes from 172.16.0.20: icmp_seq=1 ttl=254 time=3.16 ms
64 bytes from 172.16.0.20: icmp_seq=2 ttl=254 time=2.77 ms
64 bytes from 172.16.0.20: icmp_seq=3 ttl=254 time=2.81 ms
B→A
[ec2-user@ip-172-16-0-20 ~]$ ping -c 3 10.0.0.10
PING 10.0.0.10 (10.0.0.10) 56(84) bytes of data.
64 bytes from 10.0.0.10: icmp_seq=1 ttl=254 time=3.13 ms
64 bytes from 10.0.0.10: icmp_seq=2 ttl=254 time=2.76 ms
64 bytes from 10.0.0.10: icmp_seq=3 ttl=254 time=2.74 ms
Reference
이 문제에 관하여(AWS Transit Gateway 시도해 보았습니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/leomaro7/items/8dd787211e1c860a57b0텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)