AWS Solution Architect

Discussion in 'Introduction' started by Arvind Kumar_7, Jul 30, 2017.

  1. Arvind Kumar_7

    Alumni

    Joined:
    Jun 28, 2017
    Messages:
    2
    Likes Received:
    0
    I have 2 questions related to Virtual Private cloud

    1. How do you setup communication between 2 private instances in different VPCs in the different regions?
    2.we know 1 availability zone is = 1 subnet so How i was able to create 2 subnets in the same availability zone and how this statement is true that 200 subnets can be created per VPC.
     
    #1
  2. Akansha Chaurasia

    Akansha Chaurasia Well-Known Member
    Simplilearn Support

    Joined:
    Jun 2, 2017
    Messages:
    75
    Likes Received:
    2
    1. Create VPCs.
    2. Launch an Amazon Linux EC2 instance in public subnet of each VPC and set the private IP address different(should not conflict).
    3. Allocate one Elastic IP in each region and associate to the EC2 instance corresponding to that region.
    4. Whitelist all the traffic between the instances through EIP
    5. Disable Source and destination check on both the instances
    6. In the route table of both VPCs, add the route to send traffic to other VPC through the VPN instances.
    7. Login to the EC2 instance and install the openswan package.
    8. Open the configuration file /etc./ipsec.conf .
    9. Create the file /etc./ipsec.d/vpc1-vpc2.secrets.
    10. On both the instances restart the service .
    11. Configure both instances to allow packet forwarding and restart the service.
    .
     
    #2
  3. Akansha Chaurasia

    Akansha Chaurasia Well-Known Member
    Simplilearn Support

    Joined:
    Jun 2, 2017
    Messages:
    75
    Likes Received:
    2
    You can add one or more subnets in each az and 200 subnets is the default limit per VPC.
     
    #3

Share This Page