How to Virtual Private Gateway on Amazon Web Service(AWS).

A virtual private gateway is a logical, fully redundant distributed edge routing function that sits at the edge of your VPC. As it is capable of terminating VPN connections from your on-prem or customer environments, the VPG is the VPN concentrator on the Amazon side of the Site-to-Site VPN connection.

 

  • Login to aws portal.
  • Click on Services.

 

Fig 1

 

  • Under Networking & Content Delivery select VPC.

 

Fig 2

 

  • Click on Virtual Private Gateways.

 

Fig. 3

 

  • Click on Create Virtual Private Gateway.

 

Fig. 4

 

  • Provide Virtual Private Gateway Tag name.
  • Select default amazon ASN.
  • Click on Create Virtual private gateway.

 

Fig. 5

 

  • After sometime virtual private gateway is created successfully.

 

Fig. 6

 

  • Click on Close option then go to vgw console page.
  • New Virtual private gateway is there with the tag name we provide.

 

Fig. 7

 

  • Click on Actions.
  • Select Attach to VPC.

 

Fig. 7

 

  • Select existing VPC.
  • Click on Yes Attach.

 

Fig. 8

 

  • Existing VPC is attached to Virtual private gateway.

 

Fig 9

 

Create Virtual Private Gateway using Shell

To create a virtual private gateway

aws ec2 create-vpn-gateway –type ipsec.1

To create a virtual private gateway with a specific Amazon-side ASN

aws ec2 create-vpn-gateway –type ipsec.1 –amazon-side-asn 65001

To attach a virtual private gateway to your VPC

aws ec2 attach-vpn-gateway –vpn-gateway-id vgw-id –vpc-id vpc-id

 

 

Leave a Reply

Your email address will not be published.