Your company has an Azure environment with three virtual networks: `VNet-Hub` (), `VNet-SpokeA` (), and `VNet-SpokeB` (). Both spoke virtual networks are peered directly with `VNet-Hub`.
In `VNet-Hub`, a Network Virtual Appliance (NVA) named `NVA-1` is deployed in a subnet named `Subnet-DMZ` (). The NVA has a private IP address of assigned to its network interface `nic1`.
You need to ensure that all network traffic originating from `Subnet-App` () in `VNet-SpokeA` and destined for `Subnet-DB` () in `VNet-SpokeB` is routed through `NVA-1`.
Which two actions should you perform? (Each correct answer presents part of the solution.)
- Enable IP forwarding on the network interface `nic1` of `NVA-1`.Answer
- Associate a custom route table with `Subnet-App` and add a route with the destination prefix , a next hop type of Virtual appliance, and a next hop IP address of .Answer
- CAssociate a custom route table with `Subnet-App` and add a route with the destination prefix , a next hop type of Virtual network gateway, and a next hop IP address of .
- DEnable gateway transit on the virtual network peering connection between `VNet-Hub` and `VNet-SpokeA`.
- EAssociate a custom route table with `Subnet-DMZ` and add a route with the destination prefix , a next hop type of Virtual appliance, and a next hop IP address of .
Answer
To route traffic from the application subnet to the database subnet through the network virtual appliance, you must enable IP forwarding on the network interface of the appliance, and associate a route table with the application subnet that contains a route to the database subnet with a next hop type of Virtual appliance and the IP address of the appliance.
To route traffic through a Network Virtual Appliance (NVA), two conditions must be met: first, the NVA's network interface must be configured to allow IP forwarding, otherwise it will discard packets not addressed to its own MAC/IP address. Second, a route table must be associated with the source subnet containing a user-defined route that specifies the destination subnet, the next hop type of 'Virtual appliance', and the NVA's private IP address.
Step-by-Step Solution
Key Concept
Configuring custom routing through a Network Virtual Appliance (NVA) in Azure requires both a User-Defined Route (UDR) pointing to the NVA's IP address with a next hop type of 'Virtual appliance' and enabling IP forwarding on the NVA's network interface.
Estimated Time:2m 0s