Question

Difficulty: MediumConfigure Virtual Network Peering

Your company has an Azure environment with two virtual networks in the East US region:

* VNet-Core (10.200.0.0/1610.200.0.0/16), which contains a subnet named GatewaySubnet (10.200.1.0/2410.200.1.0/24) with an active Virtual Network Gateway connected to an on-premises network.
* VNet-App1 (10.201.0.0/1610.201.0.0/16), which contains a subnet named Subnet-App1 (10.201.2.0/2410.201.2.0/24) with an active virtual machine named VM1.

You establish a virtual network peering connection between VNet-Core and VNet-App1. You need to allow VM1 in VNet-App1 to access resources in the on-premises network by routing traffic through the Virtual Network Gateway in VNet-Core.

Which two configurations should you enable to meet this requirement? (Select two.)

  1. On the peering link from VNet-Core to VNet-App1, select Allow gateway transit.Answer
  2. On the peering link from VNet-App1 to VNet-Core, select Use the remote virtual network's gateway.Answer
  3. C
    On the peering link from VNet-App1 to VNet-Core, select Allow gateway transit.
  4. D
    On the peering link from VNet-Core to VNet-App1, select Use the remote virtual network's gateway.

Answer

Enable 'Allow gateway transit' on the peering link from VNet-Core to VNet-App1, and enable 'Use the remote virtual network's gateway' on the peering link from VNet-App1 to VNet-Core.
To route traffic from a spoke virtual network through a gateway in a hub virtual network, you must enable 'Allow gateway transit' on the peering link originating from the hub virtual network (VNet-Core to VNet-App1) and enable 'Use the remote virtual network's gateway' on the peering link originating from the spoke virtual network (VNet-App1 to VNet-Core).

Step-by-Step Solution

1
Identify the VNet containing the VPN gateway.
VNet-Core hosts the Virtual Network Gateway.
Gateway transit settings are directional and depend on which VNet actually possesses the physical gateway resource.
2
Configure the hub virtual network peering properties.
Enable 'Allow gateway transit' on the peering link from VNet-Core to VNet-App1.
This configuration allows the hub VNet to share its gateway with the peered spoke VNet.
3
Configure the spoke virtual network peering properties.
Enable 'Use the remote virtual network's gateway' on the peering link from VNet-App1 to VNet-Core.
This configuration instructs the spoke VNet to route external traffic through the hub's gateway.

Key Concept

Virtual Network Gateway Transit in Peered Networks
Rate this question