nerdexam
Huawei

H35-210_V2.5 · Question #378

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 correct answer is B. The router selects the second route, because this route matches the destination address 9.1.4.5. 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…

Huawei Cloud Network Services

Question

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?

Options

  • AThe router selects the first route, because the priority of OSPF is higher.
  • BThe router selects the second route, because this route matches the destination address 9.1.4.5
  • CThe router selects the second route, because the metric of RIP is smaller.
  • DThe router selects the second route, because the outbound interface is Ethernet0, which is faster

How the community answered

(34 responses)
  • A
    3% (1)
  • B
    71% (24)
  • C
    9% (3)
  • D
    18% (6)

Explanation

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 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 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.

Topics

#longest prefix match#routing table#OSPF vs RIP#route selection

Community Discussion

No community discussion yet for this question.

Full H35-210_V2.5 Practice