An administrator is configuring routing for an Azure virtual network named `VNet-Ecom` (). The virtual network contains three subnets: `Web-Subnet` (), `Database-Subnet` (), and `DMZ-Subnet` (). A Network Virtual Appliance (NVA) is deployed in `DMZ-Subnet` with the private IP address and has IP forwarding enabled. You create a custom route table named `RT-Web` and associate it with `Web-Subnet`. You need to ensure that all traffic from `Web-Subnet` to `Database-Subnet` is inspected by the NVA. Which route configuration should you add to `RT-Web`?
- AAddress prefix: , Next hop type: Virtual network gateway, Next hop address:
- Address prefix: , Next hop type: Virtual appliance, Next hop address: Answer
- CAddress prefix: , Next hop type: Virtual appliance, Next hop address:
- DAddress prefix: , Next hop type: Virtual appliance, Next hop address:
Answer
Address prefix: , Next hop type: Virtual appliance, Next hop address:
To route traffic from one subnet to another through a firewall or other virtual appliance, you must define a route with the destination prefix of the target subnet (in this case, the database subnet prefix ), specify the next hop type as 'Virtual appliance', and provide the private IP address of the virtual appliance (). Since the user-defined route has a more specific prefix () than the default system route for the VNet (), Azure will select the user-defined route based on the longest prefix match rule, forwarding the traffic to the virtual appliance.
Step-by-Step Solution
Key Concept
Configuring User-Defined Routes (UDRs) to direct traffic through a Network Virtual Appliance (NVA) requires specifying a 'Virtual appliance' next hop type with the NVA's private IP, using the most specific destination IP prefix to avoid routing loops.
Estimated Time:1m 30s