I'm studying for the CCNA, and I seem to be seeing conflicting information regarding wildcard masking. My understanding of wildcard masks is that they are the exact opposite of subnet masks. The 1's are not indicating the network bits, but instead are indicating the bits that are "wildcards" to indicate a range of IPs.
However, some of the examples I'm seeing are showing wildcard masks that don't follow the description that I understand to be correct. They're showing masks in which the last bit is set to 0. Here's an example:
They're trying to set up NAT where the internal IPs are 192.168.6.65 through 192.168.6.126. Clearly, this is the subnet 192.168.6.64/26 and 192.168.6.64 and 192.168.6.127 are omitted because they are the network and broadcast addresses respectively. My understanding is that the wildcard mask for this would be 0.0.0.63, or 00000000.00000000.00000000.00111111.
The answer given for the problem shows the following access-list command
access-list 1 permit 192.168.6.65 0.0.0.62
Now, is that correct? I realize that the network and broadcast addresses need to be omitted, but you can't have a 1 followed by a 0 in a wildcard mask, can you? The mask they're giving would be 00000000.00000000.00000000.00111110.
IF that is valid, wouldn't it omit all of the even-numbered addresses anyway?
Am I right in waving the BS flag in this practice question's general direction? Also, I'm assuming that the router (or multilayer switch) would be smart enough to ignore the network and broadcast addresses when you specify a range like this?