• We should now be fully online following an overnight outage. Apologies for any inconvenience, we do not expect there to be any further issues.

ACL Wildcard Mask Question - Answered

bbarnes

Senior member
Mar 18, 2000
421
0
0
Ok, say for instance you had a host with an IP of 172.32.16.40

The wildcard mask would not work if it were x.x.x.215 (the x is there becuase I am not worried about that part) because it would block any host that had a IP with a bit in the 32 and 8 spot regardless whether it had one in any other spot in the last octet or not, is this correct?

As .40 in binary is 00101000, thus we get the .215 by telling it to ignore all other bits besides the 32 and 8 bit.

Wouldn't this also affect any host with an IP of anything that contained these same two bits plus any others, such as .41 (00101001)

[EDIT] Answered [/EDIT]
 

spidey07

No Lifer
Aug 4, 2000
65,469
5
76
yeah, wildcard mask is a bit-wise operation. 1=don't care, 0=match.

if you need to match a particular host then use a mask of 0.0.0.0 or the keyword HOST.

You generally see wildcard masks used to specifiy a network or subnetwork.
0.0.0.127 (matches half of class C net)
0.0.0.31 (matches ip in the 255.255.255.224 subnet)
0.0.255.255 (matches entire class B net)

HTH
 

bbarnes

Senior member
Mar 18, 2000
421
0
0
Thanks, that is what I thought, just a friend was saying that he thought it work that way and I wanted to make sure I wasn't thinking the wrong way...