An organization is designing a hub-and-spoke virtual network topology in Azure. The hub virtual network, `vnet-neure-hub-01` (), contains an Azure Route Server in the `RouteServerSubnet` () and a pair of Network Virtual Appliances (NVAs) in `snet-nva` () that establish BGP sessions with the Route Server. The NVAs advertise on-premises network routes (). You peer a spoke virtual network named `vnet-neure-spoke-app` () with `vnet-neure-hub-01`. You must ensure that virtual machines in `vnet-neure-spoke-app` can dynamically learn the routes advertised by the NVAs via Azure Route Server, without using User-Defined Routes (UDRs). Which two configurations should you implement?
- Configure the peering from `vnet-neure-spoke-app` to `vnet-neure-hub-01` to use the remote virtual network's gateway or Route Server.Cevap
- Configure the peering from `vnet-neure-hub-01` to `vnet-neure-spoke-app` to use this virtual network's gateway or Route Server.Cevap
- CCreate a route table in `vnet-neure-spoke-app` with a route for pointing to the virtual IP of the Azure Route Server as the next hop.
- DEnable branch-to-branch transit in the Azure Route Server configuration.
Cevap
Configure the peering from `vnet-neure-spoke-app` to `vnet-neure-hub-01` to use the remote virtual network's gateway or Route Server, and configure the peering from `vnet-neure-hub-01` to `vnet-neure-spoke-app` to use this virtual network's gateway or Route Server.
The correct configurations involve enabling gateway and Route Server transit on both ends of the Virtual Network Peering. Specifically, you must configure the peering from the spoke VNet to the hub VNet to use the remote virtual network's gateway or Route Server, and configure the peering from the hub VNet to the spoke VNet to use this virtual network's gateway or Route Server. These settings allow the routing table of the spoke VNet to be dynamically updated with the BGP routes exchanged between the Route Server and the NVAs.
Adım Adım Çözüm
Anahtar Kavram
Azure Route Server facilitates dynamic route exchange between NVAs and virtual networks using BGP. To allow peered spoke VNets to dynamically learn routes propagated by the Route Server in a hub VNet, transit options must be enabled on both sides of the VNet peering (specifically `useRemoteGateways` on the spoke side and `allowGatewayTransit` on the hub side).