Refer to the following partial routing table output from router R1:
text
Codes: C - connected, S - static, R - RIP, B - BGP, O - OSPF, D - EIGRP
Gateway of last resort is 192.168.5.2 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 192.168.5.2
B 10.140.0.0/16 [20/0] via 192.168.4.2, 01:22:00, GigabitEthernet0/0/0
S 10.140.24.0/24 [1/0] via 192.168.3.2
O 10.140.24.0/25 [110/20] via 192.168.1.2, 00:14:22, GigabitEthernet0/0/1
D 10.140.24.64/28 [90/307200] via 192.168.2.2, 00:05:10, GigabitEthernet0/0/2
Router R1 receives an IP packet addressed to . Which egress interface and next-hop IP address will R1 use to forward this packet?
- Interface GigabitEthernet0/0/2 with next-hop IP address 192.168.2.2Answer
- BInterface GigabitEthernet0/0/1 with next-hop IP address 192.168.1.2
- CNext-hop IP address 192.168.3.2
- DInterface GigabitEthernet0/0/0 with next-hop IP address 192.168.4.2
Answer
Interface GigabitEthernet0/0/2 with next-hop IP address 192.168.2.2
When a router makes a packet forwarding decision, it evaluates all matching routing table entries using the Longest Prefix Match (LPM) rule first. For destination IP , the matching prefixes are , , , , and . The prefix () is the most specific match. Therefore, R1 forwards the packet to next-hop out interface GigabitEthernet0/0/2.
Step-by-Step Solution
Key Concept
Longest Prefix Match Rule
Estimated Time:1m 30s