Refer to the exhibit displaying an abbreviated routing table for router R1:
text
Gateway of last resort is 192.168.4.1 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 192.168.4.1, Serial0/0/0
S 10.1.1.0/24 [1/0] via 192.168.1.1, GigabitEthernet0/0
D 10.1.1.64/26 [90/307200] via 192.168.2.1, GigabitEthernet0/1
O 10.1.1.64/28 [110/20] via 192.168.3.1, GigabitEthernet0/2
Router R1 receives an IP packet addressed to destination host . Which next-hop IP address and outbound interface will R1 use to forward this packet?
- 192.168.3.1 via GigabitEthernet0/2Answer
- B192.168.1.1 via GigabitEthernet0/0
- C192.168.2.1 via GigabitEthernet0/1
- D192.168.4.1 via Serial0/0/0
Answer
192.168.3.1 via GigabitEthernet0/2
When forwarding a packet, a router first evaluates all routes in its routing table to find matches for the destination IP address. If multiple routes match, the router strictly enforces the Longest Prefix Match (LPM) rule. For destination IP 10.1.1.67, matching prefixes are /24, /26, and /28. The /28 prefix (10.1.1.64/28) is the longest match. Therefore, R1 forwards the packet to next-hop 192.168.3.1 via interface GigabitEthernet0/2, completely ignoring Administrative Distance when prefix lengths differ.
Step-by-Step Solution
Key Concept
Router Forwarding Decision Logic & Longest Prefix Match (LPM)
Estimated Time:1m 30s