A core border router receives an IP packet destined for host address . The router's active routing table contains four operational candidate entries that match this target network space:
1. Static route to via next-hop (Administrative Distance: )
2. OSPF route to via next-hop (Administrative Distance: , Metric: )
3. Internal EIGRP route to via next-hop (Administrative Distance: , Metric: )
4. External BGP route to via next-hop (Administrative Distance: , Metric: )
Which next-hop IP address will the router select to forward this packet?
- A172.16.1.1, because static routes possess the lowest administrative distance among all matching table entries
- 172.16.3.1, because the /22 subnet mask provides the longest matching prefix for the destination addressAnswer
- C172.16.4.1, because BGP exterior gateway routes take precedence over interior routing protocols when crossing autonomous system boundaries
- D172.16.2.1, because OSPF link-state metrics are preferred over distance-vector summary calculations
Answer
172.16.3.1, because the /22 subnet mask provides the longest matching prefix for the destination address.
The fundamental decision rule for IPv4/IPv6 packet forwarding is Longest Prefix Match (LPM). When a router consults its forwarding table, it selects the route with the most specific (longest) subnet mask that covers the target IP address. Here, host address falls within all four candidate ranges, but (22 matching network bits) is more specific than , , or . Consequently, the router routes to next-hop without evaluating Administrative Distance or protocol metrics.
Step-by-Step Solution
Key Concept
Longest Prefix Match (LPM) Routing Precedence