An organization has an Azure virtual network named `VNet-A` () that contains three subnets:
- `Subnet-1` ()
- `Subnet-2` ()
- `Subnet-Security` ()
Azure automatically creates a default system route for the local virtual network (, next hop: Virtual network).
To control traffic, an administrator creates a route table named `RT-Prod` and associates it with `Subnet-1`. The route table contains the following user-defined routes (UDRs):
- Route1: Destination prefix , Next hop type: Virtual appliance, Next hop IP address:
- Route2: Destination prefix , Next hop type: None
A virtual machine in `Subnet-1` attempts to connect to a database server at the IP address in `Subnet-2`.
How is this traffic routed?
- The traffic is dropped.Cevap
- BThe traffic is routed to the virtual appliance at .
- CThe traffic is routed directly to the database server via the virtual network local system route.
- DThe traffic is routed to the default Internet gateway.
Cevap
The traffic is dropped.
The correct answer states that the traffic is dropped. When the virtual machine attempts to send traffic to the destination IP address , Azure compares the destination against all active routes in the route table associated with the source subnet. The destination matches the user-defined route for (prefix length /24), the system local virtual network route for (prefix length /16), and the default route for (prefix length /0). Following the Longest Prefix Match rule, the most specific route () is selected. Since its next hop type is defined as None, the traffic is discarded.
Adım Adım Çözüm
Anahtar Kavram
Azure determines packet routing by selecting the route with the Longest Prefix Match (LPM). User-defined routes with more specific prefixes override standard system routes, and setting the next hop to None acts as a traffic filter.