Can ACLs Match IP Prefix and Mask Length? H12-821 Exam Question
Short answer
B An ACL can be used to match routes by specifying both the IP address and the subnet mask length through its wildcard mask configuration in route policies.
Question
Key Takeaways
The trap lies in confusing 'wildcard mask' with 'inability to distinguish prefix lengths.' Wildcard masks allow precise definition of both address and mask bits for route filtering.
This H12-821 exam question clarifies whether ACLs can match both IP address prefixes and mask lengths. The correct answer is FALSE, as ACLs use wildcard masks to precisely filter routes based on both criteria.
Common mistake: Option A (TRUE) is incorrect because it assumes ACLs lack granularity for mask lengths. In reality, the wildcard mask parameter allows explicit matching of specific subnet masks alongside IP addresses.
Expert Analysis
ACL Matching Capabilities in Huawei Routing
The statement is FALSE. Standard and Extended Access Control Lists (ACLs) on Huawei devices are capable of matching routes based on both the IP address prefix and its subnet mask length. This capability is primarily utilized when ACLs are applied to routing policies for route filtering.
Mechanism: Wildcard Mask vs. Prefix Length
A common misconception, often cited in comments, is that ACLs only evaluate bits using a wildcard mask and cannot distinguish between prefixes like 10.1.1.0/24 and 10.1.1.0/25 if they share the same network portion. While it is true that an ACL entry defines a range of addresses using a base IP and a wildcard mask, this does not mean it ignores the prefix length entirely. When configuring a rule to match a specific route, you specify the network address and the wildcard mask. The combination effectively filters for specific prefix lengths. For example, to match exactly /24, you use a wildcard mask of 0.0.0.255; to match /25, you might use 0.0.0.127. Thus, the ACL inherently distinguishes between different mask lengths by requiring the user to define the exact bit pattern via the wildcard.
Practical Application in Route-Policy
In Huawei VRP, ACLs are frequently used within route-policy nodes to filter routes. The command rule 1 permit ip source x.x.x.x y.y.y.y allows administrators to select routes based on their destination IP and mask. If the question implies that an ACL cannot be used to differentiate or match specific prefix lengths (like distinguishing /24 from /28), it is incorrect because the wildcard mask mechanism provides granular control over the mask bits as well as the address bits. Therefore, ACLs can indeed be used to match both the IP address prefix and the mask length.
Exam Strategy
When analyzing ACL behavior in routing contexts, always consider the wildcard mask's role. It is not just a simple inverse of the subnet mask but a tool for defining ranges. For route filtering questions, remember that you can specify exact prefix lengths by carefully calculating the wildcard mask (e.g., 0.0.0.255 for /24). Do not assume ACLs are limited to broad address ranges without mask specificity.
Frequently Asked Questions
How does an ACL distinguish between /24 and /25?
Where are ACLs used for route filtering in Huawei devices?
Community Votes
100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 1 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 1
-
HCIP Resolutor 👍 1 Answered AUna ACL (Basic o Advanced) solo puede evaluar los bits de la dirección IP utilizando su máscara comodín (wildcard mask). Una ACL no puede evaluar simultáneamente el prefijo de red y la longitud exacta de la máscara de subred de una ruta. Por ejemplo, una ACL no puede diferenciar entre 10.1.1.0/24, 10.1.1.0/25 o 10.1.1.0/28 si todas comparten la misma porción de red IP.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All H12-821 Questions
Access 168 questions with complete answers and detailed explanations.
View Full H12-821 Practice Test →