The routing table of a router contains the following two entries:
Destination/Mask Protocol Pre Cost Nexthop Interface
9.0.0.0/8 OSPF 10 50 1.1.1.1 Serial0
9.1.0.0/16 RIP 100 5 2.2.2.2 Ethernet0
If the router needs to forward packets with the destination address of 9.1.4.5, which of the following statements is correct?
When a router forwards packets, it selects the route with the longest prefix match (most specific route) for the destination address.
First Route : Matches 9.0.0.0/8, which covers all IP addresses starting with 9.
Second Route : Matches 9.1.0.0/16, which is more specific and covers IP addresses starting with 9.1.
For the destination address 9.1.4.5 , the second route (9.1.0.0/16) is a better match because it is more specific than the first route (9.0.0.0/8).
Option A : Incorrect. OSPF has a higher priority, but the longest prefix match takes precedence over priority.
Option B : Correct. The second route matches the destination address more accurately.
Option C : Incorrect. Metric is not considered when comparing routes with different prefix lengths.
Option D : Incorrect. Interface speed is irrelevant in route selection.
HCIA Huawei ACCESS Official Documentation , Chapter: IP Routing Table Selection.
Routing Principles and Longest Prefix Match by Huawei.
Blythe
4 days ago