How to Create Transit Gateway on Amazon Web Service(AWS).

AWS Transit Gateway connects VPCs and on-premises networks through a central hub. This simplifies your network and puts an end to complex peering relationships. It acts as a cloud router – each new connection is only made once.

The transit gateway places a network interface in that subnet using one IP address from the subnet. After you enable an Availability Zone, traffic can be routed to all subnets in that Availability Zone, not just the specified subnet.

 

  • Login to aws portal.
  • Click on Services.

 

Fig 1

 

  • Under Networking & Content Delivery select VPC.

 

Fig 2

 

  • Click on Transit Gateways.

 

Fig. 3

 

  • Click on Create Transit Gateway.

 

Fig. 8

 

  • Provide Transit gateway name tag.
  • Provide Amazon side ASN either leave the default value to use the default Autonomous System Number (ASN), or enter the private ASN for your transit gateway. The range is 64512 to 65534 for 16-bit ASNs or The range is 4200000000 to 4294967294 for 32-bit ASNs.
  • Enable Domain Name System resolution for VPCs attached to this Transit Gateway.
  • Equal-cost multi-path routing for VPN Connections that are attached to this Transit Gateway.
  • Automatically associate Transit Gateway attachments with this Transit Gateway’s default route table.
  • Automatically propagate Transit Gateway attachments with this Transit Gateway’s default route table.
  • Enables the ability to create multicast domains in this Transit Gateway.

 

Fig. 4

 

 

  • Automatically accept cross account attachments that are attached to this Transit Gateway.
  • Click on Add CIDR. Specify one or more IPv4 or IPv6 CIDR blocks for your transit gateway.
  • Click on Create Transit Gateway.

 

Fig. 5

 

  • After sometime Transit gateway is created successfully.
  • Click on close.

 

Fig. 6

  • Go to Transit gateway console page.
  • New Transit gateway is there with the name we provide.

 

Fig. 7

 

Create Transit Gateway using Shell

aws ec2 create-transit-gateway –description example –options=AmazonSideAsn=64516,AutoAcceptSharedAttachments=enable,DefaultRouteTableAssociation=enable,DefaultRouteTablePropagation=enable,VpnEcmpSupport=enable,DnsSupport=enable

 

 

Leave a Reply