An Azure environment contains a hub virtual network named `VNet-Hub` () and a spoke virtual network named `VNet-Spoke` (). The virtual networks are connected using virtual network peering.
`VNet-Hub` contains a network virtual appliance (NVA) named `NVA-FW` with a private IP address of .
`VNet-Spoke` contains two subnets:
- `WebSubnet` ()
- `DbSubnet` ()
A route table named `RT-Spoke` is associated with `WebSubnet`. The route table contains the following custom routes:
| Route Name | Destination Prefix | Next Hop Type | Next Hop IP Address |
|---|---|---|---|
| Route-to-DB | Virtual appliance | ||
| Route-to-VNet | Virtual network | N/A |
A virtual machine named `VM-Web` in `WebSubnet` () attempts to establish a connection to a database server in `DbSubnet` ().
Which route is selected from `RT-Spoke`, and what configuration is required on `NVA-FW` to allow the traffic to reach the database server?
- Route-to-DB is selected; IP forwarding must be enabled on the network interface of `NVA-FW`.Cevap
- BRoute-to-VNet is selected; gateway transit must be enabled on the virtual network peering.
- CRoute-to-DB is selected; the next hop type of Route-to-DB must be changed to Virtual network gateway.
- DThe default system route for the subnet is selected; no additional configuration is required.
Cevap
Route-to-DB is selected; IP forwarding must be enabled on the network interface of `NVA-FW`.
The correct answer states that Route-to-DB is selected and IP forwarding must be enabled on the network interface of `NVA-FW`. This is correct because Route-to-DB () has the longest prefix match for the destination IP () compared to Route-to-VNet (). Additionally, because the traffic is directed through a Network Virtual Appliance (NVA) that needs to forward packets to another destination, IP forwarding must be enabled on the NVA's NIC in Azure to prevent the platform from dropping the packets.
Adım Adım Çözüm
Anahtar Kavram
Azure Route Selection Rules (Longest Prefix Match, UDR Precedence, and NVA IP Forwarding)