DEV Community

Cover image for SITE TO SITE CONNECTIVITY
Nishita Mohanty
Nishita Mohanty

Posted on • Edited on

SITE TO SITE CONNECTIVITY

How to establish site to site connectivity between your AWS account and client's on-premise network? How the setup is done?

STEP 1:-
CREATE YOUR VPC, and configure it using subnets, internet gateway, route tables etc.(use nat-gateway if you are using private subnet)

STEP 2:-
Go to Virtual Private Gateway.
Image description
Then click on Create Virtual private gateway -> Give a name -> then click on create.
Image description
Now attach it to your VPC.
Image description
Image description

STEP 3:-
Go to Customer Gateway.
Image description
Create -> Give a name tag -> Then allocate IP( This IP should be given by the on-premise client) -> Then click on create.
Image description

STEP 4:-
Go to Site to Site VPN Connection.
Image description
Then click on create -> give name -> select virtual private gateway -> select customer gateway -> change the routing options from dynamic to static -> static preferences (give the subnet details of the customer) -> click on create Vpn connection.
Image description
Image description

Then select the Vpn connectivity and wait for the status gets active and we can see that in the tunnel details the status is down.
Image description

STEP 5:-
We need to configure the route table of VPC.

Choose the route table you want to propagate.
Image description
Then edit-> route propagation-> check on enable and save.
Image description

Then again go to VPN and download configuration and set the values accordingly.
Image description
Image description

The text file which is downloaded consists of all the details of the two tunnels and it is given to the client so they will establish connectivity at their end.
When the connection would be done the tunnel's status will be up.
Which means we are successful in creating site to site connectivity.

NOTE:-
We need to ask the customers 2 things-

  1. Public IP of gateway .
  2. Subnet details.

Top comments (0)