200-301 · Question #770
What is the correct routing match to reach 172.16.1.5/32?
The correct answer is A. 172.16.1.0/26. The correct routing match is determined by the longest prefix match, where the most specific route takes precedence.
Question
What is the correct routing match to reach 172.16.1.5/32?
Options
- A172.16.1.0/26
- B172.16.1.0/25
- C172.16.1.0/24
- Dthe default route
How the community answered
(46 responses)- A80% (37)
- B2% (1)
- C4% (2)
- D13% (6)
Why each option
The correct routing match is determined by the longest prefix match, where the most specific route takes precedence.
The route 172.16.1.0/26 represents the most specific network range that includes the target IP address 172.16.1.5, according to the principle of longest prefix matching in routing tables. A /26 subnet includes IP addresses from 172.16.1.0 to 172.16.1.63, making 172.16.1.5 a direct match within this more precise range compared to /25 or /24.
While 172.16.1.0/25 contains 172.16.1.5, it is less specific than a /26 prefix.
While 172.16.1.0/24 contains 172.16.1.5, it is less specific than both /25 and /26 prefixes.
The default route 0.0.0.0/0 is the least specific route and is only used when no other more specific match is found.
Concept tested: Longest prefix match routing
Source: https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/13763-4.html
Topics
Community Discussion
No community discussion yet for this question.