Refer to the following partial output from the show ip route command on a Cisco router:
text
Gateway of last resort is 10.1.1.1 to network 0.0.0.0
D 10.50.0.0/16 [90/307200] via 10.2.2.2, GigabitEthernet0/1
O 10.50.10.0/24 [110/20] via 10.3.3.3, GigabitEthernet0/2
S 10.50.10.64/26 [1/0] via 10.4.4.4, GigabitEthernet0/3
S* 0.0.0.0/0 [1/0] via 10.1.1.1, GigabitEthernet0/0
The router receives an IPv4 packet destined for host 10.50.10.75. Which next-hop IP address will the router choose to forward this packet?
- 10.4.4.4Cevap
- B10.3.3.3
- C10.2.2.2
- D10.1.1.1
Cevap
The router will select the next-hop IP address 10.4.4.4 associated with the longest prefix match route 10.50.10.64/26.
When a router performs a routing lookup for a packet destination IP, it checks for matching entries in the IP routing table and selects the route with the most specific match (the longest subnet mask). In this case, 10.50.10.75 matches 10.50.0.0/16, 10.50.10.0/24, and 10.50.10.64/26. The /26 prefix is the longest match, so the packet is forwarded via its next hop, 10.4.4.4.
Adım Adım Çözüm
Anahtar Kavram
Longest Prefix Match (LPM) Rule