0 matches, 1 ignores
Write the address and the wildcard in binary. Wherever the wildcard has a 0, the address bit must equal the pattern. Wherever it has a 1, anything goes.
On small screens, swipe sideways or focus the diagram and use the arrow keys.
Worked examples
192.168.10.0 0.0.0.255matches 192.168.10.0 to 192.168.10.255: the first three octets must match, the last can be anything.172.16.32.0 0.0.15.255matches 172.16.32.0 to 172.16.47.255. Third octet: 15 ignores the last four bits, so 32 to 47.10.1.1.1 0.0.0.0matches one address only.10.1.0.0 0.0.254.255is non-contiguous: it ignores every bit of the third octet except the last, which must be 0, so it matches only even third octets.
Where you use it
! ACL: permit hosts in 192.168.10.0/24
access-list 10 permit 192.168.10.0 0.0.0.255
! Single host and any
access-list 10 permit host 192.0.2.5
access-list 10 deny any
! OSPF: enable on interfaces in 10.1.1.0/24
router ospf 1
network 10.1.1.0 0.0.0.255 area 0ACLs and OSPF use the same wildcard syntax. The ACL examples are illustrations of syntax, not a complete policy.
Reading a block size
For /27 subnet 192.168.1.64: block size 32, wildcard 0.0.0.31. The range is 192.168.1.64 to 192.168.1.95. Check with the wildcard calculator.
Test yourself
What is the wildcard mask for the subnet mask 255.255.255.240?
What does 172.16.32.0 0.0.15.255 match?
Which wildcard matches exactly one host?