An administrator is designing a virtual network routing solution. A virtual network contains two subnets named `SubnetA` and `SubnetB`. A firewall virtual machine named `NVA1` is deployed in `SubnetB`. The administrator wants to route all outbound internet traffic from the virtual machines in `SubnetA` through `NVA1` for inspection before it reaches the internet.
Which two actions must the administrator perform to achieve this goal?
- Create a route table containing a route with the destination `0.0.0.0/0` and next hop type of Virtual appliance pointing to the private IP address of `NVA1`, and associate the route table with `SubnetA`.Answer
- Enable IP forwarding on the network interface (NIC) of the `NVA1` virtual machine.Answer
- CCreate a route table containing a route with the destination `0.0.0.0/0` and next hop type of Virtual network gateway pointing to the public IP address of `NVA1`, and associate the route table with `SubnetA`.
- DEnable IP forwarding on the network interfaces (NICs) of all virtual machines deployed in `SubnetA`.
Answer
To route internet-bound traffic from SubnetA through a network virtual appliance (NVA) in SubnetB, the administrator must create a route table with a default route (0.0.0.0/0) where the next hop type is set to Virtual appliance and the next hop IP address is the private IP address of NVA1. This route table must be associated with SubnetA. Additionally, the administrator must enable IP forwarding on the network interface (NIC) of NVA1 to allow it to forward traffic destined for other locations.
To route SubnetA's internet traffic through NVA1, a route table must be created with a route for 0.0.0.0/0 pointing to the private IP of NVA1 as a Virtual appliance next hop type, and this route table must be associated with SubnetA. In addition, the NVA's network interface must have IP forwarding enabled so Azure allows it to receive and process traffic destined for other IP addresses.
Step-by-Step Solution
Key Concept
Configuring custom routing through a Network Virtual Appliance (NVA) using route tables and IP forwarding.