Suppose a router receives a packet destined for the IP address 192.0.2.73. The router has in its routing table the following three routes:
To which next hop address will the packet be routed?
If you picked 172.16.3.1, you're correct. Why? A router evaluates routes in the following order.
- Prefix Length - The longest-matching route is preferred first. Prefix length trumps all other route attributes.
- Administrative Distance - In the event there are multiple routes to a destination with the same prefix length, the route learned by the protocol with the lowest administrative distance is preferred.
- Metric - In the event there are multiple routes learned by the same protocol with same prefix length, the route with the lowest metric is preferred. (If two or more of these routes have equal metrics, load balancing across them may occur.)