Router R1 contains the following IPv4 routing table entries for destination networks within the enterprise core:
- A static route to with a configured administrative distance of
- An OSPF route to with an administrative distance of
- A RIP route to with an administrative distance of
When Router R1 receives an IPv4 packet destined for host , which route will R1 select to forward the traffic?
- The RIP route to because it has the longest prefix match for the destination address.Cevap
- BThe static route to because static routes are preferred over dynamic routing protocols when administrative distance is equal.
- CThe OSPF route to because OSPF is a link-state protocol with lower overhead than RIP.
- DEqual-cost load balancing across both the static route and the OSPF route because both have an administrative distance of .
Cevap
Router R1 will select the RIP route to because it represents the longest prefix match (27 bits) for the destination host address .
When a router receives an IP packet, it compares the destination IP address against entries in its routing table. The fundamental rule of IP route selection is Longest Prefix Match (LPM). The destination host matches all three configured routes, but has the longest subnet mask prefix length (27 bits vs 24 bits vs 16 bits). Administrative distance is only evaluated when comparing two routes pointing to the exact same prefix and mask length. Therefore, the router forwards traffic using the RIP route despite its higher administrative distance of 120.
Adım Adım Çözüm
Anahtar Kavram
Cisco IPv4 Forwarding Decision Logic: Longest Prefix Match Rule