An organization deploys an Azure virtual network named `vnet-prod-eastus` with the address space . The virtual network contains three subnets:
* `snet-web` ()
* `snet-db` ()
* `snet-nva` (), which hosts a Network Virtual Appliance (NVA) at the IP address .
The organization intends to inspect all traffic from `snet-web` to `snet-db` using the NVA. An administrator creates a route table named `rt-prod-web`, associates it with `snet-web`, and adds a user-defined route (UDR) with the address prefix and the next hop pointing to the NVA.
After applying the route table, virtual machines in `snet-web` can no longer communicate with each other, and all intra-subnet traffic within `snet-web` fails.
What is the primary cause of this communication failure?
- AThe next hop type of Virtual Appliance is not supported for destinations within the same virtual network.
- The user-defined route overrides the default virtual network system route for the entire address space, redirecting local intra-subnet traffic to the NVA.Cevap
- CAzure system routes for local virtual network traffic always take precedence over user-defined routes, causing a routing loop.
- DThe virtual network automatically creates a default system route of for the subnet that takes precedence over the user-defined route.
Cevap
The user-defined route overrides the default virtual network system route for the entire address space, redirecting local intra-subnet traffic to the NVA.
The correct answer explains that user-defined routes take precedence over default system routes when the destination prefixes match. The system route for local virtual network traffic is ('Virtual network'). By defining a UDR with the prefix pointing to the NVA, all local traffic within the virtual network—including traffic between hosts in the same subnet (`snet-web`)—is redirected to the NVA. If the NVA cannot process or loop back this traffic, intra-subnet communication fails.
Adım Adım Çözüm
Anahtar Kavram
Azure route selection and precedence rules between User Defined Routes (UDR) and default system routes.