×
Cloud Computing Cloud Services Virtualization

Steps to create VPC Peering connection in AWS

In this blog, we will show you the steps to create a VPC peering connection in the AWS environment.

ENVIRONMENT OVERVIEW

 

  • For the demo purpose, we are connecting two VPC’s between Mumbai and Singapore. In the Mumbai region, we create a VPC with two subnets in a different availability zone.

Steps to create VPC Peering connection in AWS

Steps to create VPC Peering connection in AWS

 

  • Also, we create a windows instance in this VPC.

Steps to create VPC Peering connection in AWS

 

  • In the Singapore region, we created two subnets in a different availability zone.

Steps to create VPC Peering connection in AWS

Steps to create VPC Peering connection in AWS

 

  • We create a windows VM in Singapore region to test the connectivity between two regions.

Steps to create VPC Peering connection in AWS

 

CREATING VPC PEERING CONNECTION FROM MUMBAI REGION

 

  • Open the services window and search for VPC.

Steps to create VPC Peering connection in AWS

 

  • Under virtual private cloud, click on peering connections.

Steps to create VPC Peering connection in AWS

 

  • Click on create peering connection button.

Steps to create VPC Peering connection in AWS

 

  • Provide a name for the peering connection and select the local VPC from the drop-down list.

Steps to create VPC Peering connection in AWS

 

  • We have created the two different region VPC’s under same AWS account.  So we select the Account as My account and Region as Another region and select Singapore from the drop-down list.

Steps to create VPC Peering connection in AWS

 

  • Provide the Singapore region VPC ID in the VPC accepter and click on create peering connection.

Steps to create VPC Peering connection in AWS

Steps to create VPC Peering connection in AWS

 

ACCEPTING CONNECTION FROM SINGAPORE REGION

 

  • Go to Singapore Region, and open the VPC dashboard and click on Peer connection. Then accept the VPC peering request.

Steps to create VPC Peering connection in AWS

 

  • Click on the Yes, Accept button.

Steps to create VPC Peering connection in AWS

 

  • VPC peering connection has been established successfully.

Steps to create VPC Peering connection in AWS

 

UPDATING THE ROUTING TABLES IN MUMBAI REGION

 

  • Go to Mumbai region and access VPC dashboard. Click on Routing tables link.

Steps to create VPC Peering connection in AWS

 

  • Select the subnet and click on Routes Tab.

Steps to create VPC Peering connection in AWS

 

  • Then click on edit routes.

Steps to create VPC Peering connection in AWS

 

  • Add the new route entry for Singapore VPC Network range. We use 172.0.0.0/16 range as VPC network in Singapore region. Also, select the peering connection as a target from the drop-down list and click save routes.

Steps to create VPC Peering connection in AWS

 

UPDATING THE ROUTING TABLES IN SINGAPORE REGION

 

  • Now, add the Mumbai region VPC network in Singapore Routing Table. We use 10.0.0.0/16 range as VPC network in Mumbai region.

Steps to create VPC Peering connection in AWS

 

VERIFICATION

 

  • We will test the connectivity between these two regions using the ping command. We are able to ping the server each other without any issue.

Steps to create VPC Peering connection in AWS

Steps to create VPC Peering connection in AWS

 

  • Please make sure that you have added the corresponding rule for ping is security group before performing the testing.

image

 

Thanks for reading this blog. We hope it was useful for you to learn about configuring VPC peering in the AWS environment.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.