1. Home
  2. Training Library
  3. AWS Networking and Virtual Private Cloud (VPC) (ANS-C01)

Routing: VPN Connection via a Virtual Private Gateway

Contents

keyboard_tab
VPC Fundamentals
2
What is a VPC?
PREVIEW2m 25s
VPC Security and Control
VPC Connectivity
VPC Sharing using the AWS Resource Access Manager
Feature Spotlight:
Start course
Overview
Difficulty
Advanced
Duration
2h 44m
Students
180
Ratings
5/5
starstarstarstarstar
Description

In this section of the AWS Certified Advanced Networking - Specialty learning path, we introduce you to the various networking and VPC services currently available in AWS that are relevant to the ANS-C01 exam.

Learning Objectives

  • Identify and describe the various networking services available in AWS
  • Describe how to configure an Amazon Virtual Private Cloud (VPC)
  • Understand how to control network traffic via Security Groups and Network Access Control Lists (NACLs)
  • Describe options for VPC connectivity, subnets, and routing
  • Understand how to share VPC resources using the AWS Resource Access Manager (RAM)
  • Identify how to evaluate the configuration of VPC resources using the VPC Reachability Analyzer

Prerequisites

The AWS Certified Advanced Networking - Specialty certification has been designed for anyone with experience designing, implementing, and operating complex AWS and hybrid networking architectures. Ideally, you’ll also have some exposure to the nuances of AWS networking, particularly regarding the integration of AWS services and AWS security best practices. Many exam questions will require advanced level knowledge of many AWS services, including AWS networking services. The AWS Cloud concepts introduced in this course will be explained and reinforced from the ground up.

Transcript

Hello, and welcome to this short lecture on Virtual Private Gateway routing for VPN connectivity.

The AWS side of the routing configuration for a VPN connection over a Virtual Private Gateway is a little less complicated than that of VPC Peering.

Before you can set up a route for a VPN over a Virtual Private Gateway, you need to create and attach a Virtual Gateway to your VPC.

These Virtual Gateways are used to help create a VPN connection between your VPC and your corporate network outside of AWS. There are many more points of configuration in setting up a VPN connection, which is outside the scope of this course. However, to simply configure the AWS routing, at this stage, all you require is the Virtual Gateway to be attached to your VPC.

Once your Virtual Gateway is created and added to your VPC, you can then update the route tables for any subnets that intend to route to your corporate date center network. However, to simply configure the AWS routing, at this stage, all you require is the Virtual Gateway to be attached to your VPC. Once your Virtual Gateway is created and added to your VPC you can then update the route tables for any subnets that intend to route to your corporate data center network.

In this diagram, we can see that an AWS subnet, 10.0.2.0/24, has two static routes in its route table pointing to the two 172.16 subnets, which are located within the corporate data center outside of AWS. The destination networks have been added with a target pointing to the Virtual Gateway, listed as vgw1234abcd.

Any traffic destined for this network will then be directed to use this Virtual Gateway. You may remember from earlier, when I spoke about route propagation and the fact that it can be enabled when you have a Virtual Gateway attached to your VPC, by enabling propagation on this Virtual Private Gateway it will include the routes used in your VPN connection.

If you do not include propagation routing for your Virtual Gateway you will need to add static routes for all network used by the VPN connection that you want to route to, which is the case in this diagram. One point to mention is that AWS does not currently support IPv6 traffic across a VPN connection.

That brings us to the end of this short lecture, next up Routing for Internet Gateways and NAT Gateways.

About the Author
Students
207898
Labs
1
Courses
211
Learning Paths
163

Stuart has been working within the IT industry for two decades covering a huge range of topic areas and technologies, from data center and network infrastructure design, to cloud architecture and implementation.

To date, Stuart has created 150+ courses relating to Cloud reaching over 180,000 students, mostly within the AWS category and with a heavy focus on security and compliance.

Stuart is a member of the AWS Community Builders Program for his contributions towards AWS.

He is AWS certified and accredited in addition to being a published author covering topics across the AWS landscape.

In January 2016 Stuart was awarded ‘Expert of the Year Award 2015’ from Experts Exchange for his knowledge share within cloud services to the community.

Stuart enjoys writing about cloud technologies and you will find many of his articles within our blog pages.