Refer to the following routing table snippet from a Cisco router:
text
Codes: C - connected, S - static, O - OSPF, D - EIGRP
Gateway of last resort is not set
O 10.50.16.0/20 [110/50] via 192.168.1.1, 00:04:12, GigabitEthernet0/0
D 10.50.24.0/22 [90/307200] via 192.168.2.2, 00:12:45, GigabitEthernet0/1
S 10.50.25.0/24 [1/0] via 192.168.3.3
O 10.50.25.128/26 [110/30] via 192.168.4.4, 00:01:10, GigabitEthernet0/2
A packet arriving at the router is destined for host address . Which two statements accurately describe how the router processes and forwards this packet? (Select TWO.)
- The router selects the route entry 10.50.25.128/26 because /26 represents the longest matching prefix for the destination address.Cevap
- The packet will be forwarded out of interface GigabitEthernet0/2 toward next-hop IP 192.168.4.4.Cevap
- CThe router selects the static route 10.50.25.0/24 because static routes have a lower administrative distance (1) than OSPF (110).
- DThe router selects the EIGRP route 10.50.24.0/22 because EIGRP has a lower metric than OSPF.
Cevap
The router selects the route entry for 10.50.25.128/26 because /26 is the longest prefix match for destination IP 10.50.25.140, and consequently forwards the packet out of interface GigabitEthernet0/2 to next-hop 192.168.4.4.
When a router receives an IP packet, it compares the destination IP address against all routing table entries and selects the route with the most specific subnet mask (longest prefix match). Address matches (range to ). Because is longer than , , and , the router chooses this route and forwards the traffic via interface GigabitEthernet0/2 to next-hop .
Adım Adım Çözüm
Anahtar Kavram
Router Forwarding Decision Logic (Longest Prefix Match)