Refer to the following routing table output from a Cisco router:
text
Gateway of last resort is not set
10.0.0.0/8 is subnetted, 4 subnets
C 10.10.20.0/20 is directly connected, GigabitEthernet0/0
S 10.10.20.0/24 [1/0] via 172.16.1.1
O 10.10.20.128/25 [110/20] via 172.16.2.1
D 10.10.20.144/28 [90/307200] via 172.16.3.1
The router receives an IPv4 packet destined for host 10.10.20.150. Which two statements regarding the router forwarding decision are correct?
- The router forwards the packet using next-hop IP 172.16.3.1 because the /28 route provides the longest prefix match for the destination address.Answer
- BThe router forwards the packet using next-hop IP 172.16.1.1 because static routes take precedence over EIGRP due to a lower administrative distance.
- Longest prefix match logic is evaluated before comparing administrative distance values across routing protocols.Answer
- DThe router drops the packet because 10.10.20.150 is the broadcast address of the 10.10.20.144/28 subnet.
Answer
The router forwards the packet to next-hop 172.16.3.1 based on the longest prefix match rule, and prefix length evaluation strictly precedes administrative distance comparisons.
The router applies Longest Prefix Match (LPM) logic first when forwarding traffic. Among the matching entries in the routing table for 10.10.20.150, the subnet 10.10.20.144/28 has 28 matching bits, making it more specific than /25, /24, or /20. Therefore, the router forwards the packet to next-hop 172.16.3.1. Additionally, prefix length comparison occurs before comparing administrative distance or metric parameters.
Step-by-Step Solution
Key Concept
Router Forwarding Decision Logic (Longest Prefix Match precedence)