Wildcard Mask Matching in ACL Rule 5

H12-811 By islever Editorial Last updated

ACL Principles and Configuration

Short answer

ABD Wildcard 0.0.254.255 requires an even third octet, matching 10.0.6.7, 10.0.2.1 and 10.0.4.5 but not 10.0.5.6.

Question

An ACL rule is as follows. Which of the following IP addresses can be matched by the permit rule? (Choose all that apply.)
rule 5 permit ip source 10.0.2.0 0.0.254.255
  1. 10.0.6.7 Correct Answer
  2. 10.0.2.1 Correct Answer
  3. 10.0.5.6
  4. 10.0.4.5 Correct Answer

Key Takeaways

The test is whether you evaluate a wildcard mask bitwise per octet instead of treating it as a contiguous address range, which is what makes 10.0.5.6 fail.

This H12-811 ACL question tests wildcard mask matching for rule 5 permit ip source 10.0.2.0 0.0.254.255. The answer is A, B and D, because the third octet must be even while the fourth octet is ignored.

Common mistake: Choosing C (10.0.5.6) or restricting the range to 10.0.2.0–10.0.3.255 by misreading 0.0.254.255 as a subnet-style mask; wildcard bits are non-contiguous, so only the lowest bit of the third octet is checked.

Expert Analysis

Reading the wildcard mask bit by bit

An ACL wildcard mask is the inverse of a subnet mask: a 0 bit means "the source address must match this bit", while a 1 bit means "ignore this bit". The rule rule 5 permit ip source 10.0.2.0 0.0.254.255 therefore has to be evaluated octet by octet against each candidate address.

Where the constraint actually bites

  • First and second octets: wildcard 0.0 → both must be exactly 10.0. All four options pass.
  • Fourth octet: wildcard 255 → completely ignored, so the last octet of every option is free to be anything. This is why both 10.0.2.1 and 10.0.4.5 are acceptable despite looking "outside" a simple range.
  • Third octet: wildcard 254 = binary 11111110. Only the lowest-order bit is significant, and it must equal the corresponding bit of the address 2 (binary 00000010, i.e. 0). So the third octet must be even.

Applying the test to the options

  • A. 10.0.6.7 → third octet 6 is even → match.
  • B. 10.0.2.1 → third octet 2 is even → match.
  • C. 10.0.5.6 → third octet 5 is odd → its lowest bit is 1, which conflicts with the required 0 → no match.
  • D. 10.0.4.5 → third octet 4 is even → match.

Community reasoning agrees with this bit-level trace: the wildcard permits addresses whose third octet is even, and 10.0.5.6 fails because 5 is odd. So A, B and D are all matched by the permit rule.

The trap

The classic mistake is to read 0.0.254.255 as a contiguous block such as 10.0.2.0–10.0.3.255 (as if the mask were 0.0.1.255), which would reject A and D. Wildcard masks are non-contiguous: each 1 bit independently punches a hole in the match space, which is exactly what produces the even/odd pattern here.

Exam Strategy

For wildcard-mask questions, convert each mask octet to binary and mark which bits are significant before looking at the options; a 0 bit is a hard constraint, a 1 bit is a wildcard. Then test only the constrained octets—here just the third—because fully wildcarded octets (255) eliminate options automatically. Expect even/odd patterns such as 254, 252 or 248, and never convert a wildcard into a simple start–end range unless the mask is contiguous.

Frequently Asked Questions

Why does wildcard mask 0.0.254.255 match even third octets only?

254 is 11111110 in binary, so only the lowest bit of the third octet must match the source 10.0.2.0, whose lowest bit is 0. Any even third octet (2, 4, 6, …) therefore matches.

Does 10.0.6.7 really match when the source is 10.0.2.0?

Yes. The fourth octet is wildcarded with 255, and 6 is even, so 10.0.6.7 satisfies every significant bit of the rule.

Why is 10.0.5.6 not matched by rule 5?

Its third octet 5 is odd, so its lowest bit is 1 while the rule requires 0. That single conflicting bit rejects the address.

More H12-811 FAQ →

Community Votes

A
34%
B
33%
D
33%

34% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 3 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 3

  1. Fmoura17 👍 1
    The correct answers are A, B, and D Summary: IP Address3rd OctetEven/OddMatched?10.0.6.76Even✅ Yes10.0.2.12Even✅ Yes10.0.5.65Odd❌ No10.0.4.54Even✅ Yes
  2. ButcherCapybara 👍 1
    0.0.254.255 permits IP addresses where the third octet is an even number. 10.0.5.6 does not havean even number in the third octet
  3. Heidorn 👍 1
    2 4 and 6 Have their significant bits from the wildcard matching where needed, 5 does not match.

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

← Back to H12-811 Study Guide