Exercise: configure an ExpressRoute gateway
To complete this exercise, you will need a Microsoft Azure subscription. If you don't already have one, you can sign up for a free trial at https://azure.com/free .
Deploy ExpressRoute gateways
To connect your Azure virtual network and your on-premises network via ExpressRoute, you must create a virtual network gateway first. A virtual network gateway serves two purposes: to exchange IP routes between the networks and to route network traffic.
When you create a virtual network gateway, you need to specify several settings. One of the required settings, '-GatewayType', specifies whether the gateway is used for ExpressRoute, or VPN traffic. The two gateway types are:
- VPN - To send encrypted traffic across the public Internet, you use the gateway type 'VPN'. This is also referred to as a VPN gateway. Site-to-Site, Point-to-Site, and VNet-to-VNet connections all use a VPN gateway.
- ExpressRoute - To send network traffic on a private connection, you use the gateway type 'ExpressRoute'. This is also referred to as an ExpressRoute gateway and is the type of gateway used when configuring ExpressRoute.
Each virtual network can have only one virtual network gateway per gateway type. For example, you can have one virtual network gateway that uses -GatewayType VPN, and one that uses -GatewayType ExpressRoute.
In this exercise, you will:
- Task 1: Create the VNet and gateway subnet
- Task 2: Create the virtual network gateway
Task 1: Create the VNet and gateway subnet
On any Azure portal page, in Search resources, services and docs, enter virtual network, and then select Virtual networks from the results.
On the Virtual networks page, select +Create.
On the Create virtual networks pane, on the Basics tab, use the information in the following table to create the VNet:
Virtual Network Name
Select Next : IP addresses.
On the IP Addresses tab, in IPv4 address space, remove the default and enter 10.20.0.0/16, and then select + Add subnet.
In the Add subnet pane, use the information in the following table to create the subnet:
Gateway Subnet name
Gateway Subnet address space
And then select Add.
On the Create virtual network page, select Review + Create.
Confirm that the VNet passes the validation and then select Create.
If you are using a dual stack virtual network and plan to use IPv6-based private peering over ExpressRoute, click Add IP6 address space and input IPv6 address range values.
Task 2: Create the virtual network gateway
On any Azure portal page, in Search resources, services and docs (G+/), enter virtual network gateway, and then select Virtual network gateways from the results.
On the Create virtual network gateway page, use the information in the following table to create the gateway:
Public IP address
Public IP address
Public IP address name
Public IP address SKU
Select Review + Create.
Confirm that the Gateway configuration passes validation and then select Create.
When the deployment is complete, select Go to Resource.
It can take up to 45 minutes to deploy a Gateway.
Congratulations! You have successfully created a Virtual network, a gateway subnet, and an ExpressRoute Gateway.