Question

Difficulty: EasyConfigure User-Defined Routes and Routing Tables

You have an Azure virtual network named `VNet1` that contains two subnets: `Subnet1` (10.0.1.0/2410.0.1.0/24) and `Subnet2` (10.0.2.0/2410.0.2.0/24). You deploy a virtual machine in `Subnet2` that acts as a Network Virtual Appliance (NVA) with the private IP address of 10.0.2.410.0.2.4. You need to route all outbound traffic from `Subnet1` destined for the internet through the NVA. Which two actions should you perform? (Select two.)

  1. Create a route table, add a route for destination 0.0.0.0/00.0.0.0/0 with the next hop type set to Virtual appliance pointing to 10.0.2.410.0.2.4, and associate the route table with Subnet1.Answer
  2. Enable IP forwarding on the network interface (NIC) attached to the virtual machine acting as the Network Virtual Appliance.Answer
  3. C
    Associate the custom route table with Subnet2 to ensure the Network Virtual Appliance can route the traffic.
  4. D
    Create a route table, add a route for destination 0.0.0.0/00.0.0.0/0 with the next hop type set to Virtual Network Gateway pointing to 10.0.2.410.0.2.4, and associate the route table with Subnet1.

Answer

To successfully route outbound traffic from Subnet1 through the Network Virtual Appliance, you must create a route table with a default route (0.0.0.0/00.0.0.0/0) using the next hop type 'Virtual appliance' pointing to the appliance's IP address, associate this route table with Subnet1, and enable IP forwarding on the appliance's network interface.
Routing outbound traffic through a Network Virtual Appliance requires redirecting source traffic via a custom route table associated with the source subnet, referencing the appliance IP as a Virtual appliance next hop. In addition, the virtual machine hosting the appliance must have IP forwarding enabled at its Azure network interface level, otherwise the platform will discard the forwarded packets.

Step-by-Step Solution

1
Configure the User-Defined Route (UDR).
Create a route table, add a route targeting 0.0.0.0/00.0.0.0/0 with a next hop type of Virtual appliance and the IP address of 10.0.2.410.0.2.4, and associate the route table with Subnet1.
This overrides the default system route for internet traffic from Subnet1 and directs it to the Network Virtual Appliance.
2
Enable IP forwarding on the Network Virtual Appliance.
Enable IP forwarding on the Azure network interface (NIC) of the virtual machine acting as the Network Virtual Appliance.
This permits the virtual machine's network interface to accept and forward network traffic that is not directly addressed to itself.

Key Concept

Routing traffic through a Network Virtual Appliance (NVA) requires creating a User-Defined Route (UDR) with the 'Virtual appliance' next hop type associated with the source subnet, along with enabling IP forwarding on the NVA's network interface in Azure.
Rate this question