Soru

Zorluk: KolayVirtual Network Connectivity and Routing

An architect is designing a virtual network topology in Azure to support a hybrid cloud environment. The design includes a hub virtual network named `vnet-prod-hub` and a spoke virtual network named `vnet-prod-spoke`. The hub virtual network contains a virtual network gateway that connects to the company's on-premises office. A virtual network peering connection is established between `vnet-prod-hub` and `vnet-prod-spoke`. You need to ensure that virtual machines in `vnet-prod-spoke` can route their traffic to the on-premises office by using the virtual network gateway in `vnet-prod-hub`. What peering setting should you enable on the virtual network peering configuration in `vnet-prod-spoke`?

  1. Enable 'Use the remote virtual network's gateway' on the peering configuration from the spoke to the hub.Cevap
  2. B
    Enable 'Use this virtual network's gateway' on the peering configuration from the spoke to the hub.
  3. C
    Create a User Defined Route (UDR) in the spoke subnets that overrides the default local virtual network routing paths.
  4. D
    Configure individual Network Security Group (NSG) outbound rules for each on-premises destination IP range.

Cevap

Enable 'Use the remote virtual network's gateway' on the peering configuration from the spoke to the hub.
To allow resources in a spoke virtual network to use a gateway in a peered hub virtual network, you must enable the 'Use the remote virtual network's gateway' setting on the spoke virtual network's peering configuration. This configures the system routes in the spoke to route traffic destined for on-premises networks through the hub gateway.

Adım Adım Çözüm

1
Identify the location of the virtual network gateway.
The gateway is in the hub virtual network (vnet-prod-hub).
This determines which virtual network acts as the transit network for hybrid connectivity.
2
Configure gateway transit on the hub virtual network's peering.
The hub peering configuration must allow gateway transit (Use this virtual network's gateway).
This allows the hub virtual network to share its gateway with peered spoke networks.
3
Configure the spoke virtual network's peering settings.
Enable 'Use the remote virtual network's gateway' on the peering configuration from vnet-prod-spoke to vnet-prod-hub.
This allows the virtual machines in the spoke virtual network to route transit traffic through the gateway in the peered hub virtual network.

Anahtar Kavram

Virtual network peering gateway transit allows peered virtual networks to share a gateway for hybrid connectivity, removing the need to deploy gateways in every spoke.
Tahmini Süre:1m 0s
Bu soruyu puanla