d4nz1g wrote: » Turn both of them into binary and you will understand it
TechGuru80 wrote: » When the subnet mask is a 0 for instance /24...255.255.255.0 we would have a 0.0.0.255 wildcard mask. 0's mean I don't care about the number. The second example you take the subnet mask subtracted from 255 and the result is the wildcard mask. If the subnet mask was .127....255-127 = 128 would be the wildcard mask.
james43026 wrote: » This is incorrect. 0.0.0.127 is valid. If you try a wildcard mask of 0.0.0.128 you will receive the following message from Cisco IOS "Invalid address/mask combination (discontiguous mask)". This is because you did 255-127, 127 isn't a valid subnet mask, it would be 255.255.255.128 if you looked at the OP's example as a subnet mask, so 255-128=127. Just trying to clarify this for the OP to mitigate confusion for all.