AWS Networking Contd
What is VPN (Virtual Private Network)
- VPN enables private connectivity
- There are primarily two types of VPNs
- Point to site

- Site to Site

- Point to site
VPC Peering
- Peering in AWS allows any two vpcs without conflicting CIDR Ranges to communicate privately
- Overview

- Lets create a VPC (vpc-mumbai) in mumbai region with CIDR 192.168.0.0/16 with some subnets

- Lets create a vpc (vpc-oregon) in oregon region with CIDR 10.100.0.0/16 with some subnets

- Lets create a Peering request from vpc-mumbai to vpc-oregon. Now accept the peering request in vpc-oregon





- Once the request is accepted then the peering connnection objects (PCO) will be created.




- Now change the route tables in vpc-mumbai to forward all the traffic with destination
10.100.0.0/16to Peering Connection object

- Now change the route tables in vpc-oregon to forward all the traffic with destination
192.168.0.0/16to Peering Connection object

-
Now create an ec2 instance in each of region and try ping using private ip



- Peering connections are between two vpcs and peering connections are not transitive.
