Hello Willie
You can use wildcard masks to indicate a range of addresses. Wildcard masks indicate which bits of an address can be anything, and which should remain unchanged. Let’s take your example:
10.10.0.0 0.0.3.255
Let’s see the wildcard mask in binary:
00000000.00000000.00000011.11111111
Let’s take a look at the network address in binary as well:
00001010.00001010.00000000.00000000
Now, the wildcard mask has the last 10 bits set to 1, and the rest set to zero. This means that the range that is being defined allows those 10 bits to be anything while the rest of the bits must stay the same.
Let’s look at the IP address in binary once again, and mark out those 10 bits indicated by the wildcard mask"
00001010.00001010.000000
00.00000000
Those marked out bits can be anything. So essentially they can range from all zeros to all ones like so:
00001010.00001010.000000
00.00000000
…
00001010.00001010.000000
11.11111111
What is that in decimal?
Range from 10.10.0.0 to 10.10.3.255.
So that is the range being defined.
Similarly, looking at this range:
10.10.16.0 0.0.7.255
We can use the same logic. The wildcard mask in binary:
00000000.00000000.00000111.11111111
Note, 11 bits are set to 1 while the rest are set to 0. Taking a look at the IP address of 10.10.16.0 in binary with those 11 bits marked out, we get:
00001010.00001010.00010
000.00000000
So the range being defined is between:
00001010.00001010.00010
000.00000000
and
00001010.00001010.00010
111.11111111
which in binary is 10.10.16.0 and 10.10.23.255.
Now I’m not sure how you are applying the access list in which the statements appear (route filtering? traffic filtering?), so I don’t know how the final configuration will behave. However, the first network you shared matches the destination range of the first permit statement, while the second network matches the source range of both permit statements. In order to understand what is actually happening in your particular configuration, we would need to know how you are applying the ACL.
I hope this has been helpful!
Laz