08-08-2007 07:05 AM - edited 03-03-2019 06:14 PM
Hi i have this wildcard mask that i cannot understand:
0.0.31.254 i cant understand the 254 part, does this mean that it converts to 255.255.224.1 mask? i never seen a mask like that before.
it is taken from this ACL:
access-list 5 deny 172.26.192.0 0.0.31.254
Solved! Go to Solution.
08-08-2007 07:19 AM
Actually that's a valid WC mask. That's the beauty of WC masks they are so flexible that you could almost match anything.
.254 indicates it doesn't care about the first 7 bits in the last octet but the last bit (1 bit) has to match always. With an address 172.26.192.(0) the last bit is turned off therefore any address with the last bit turned off i.e any even # 0,2,4,6 etc.. will match this WC mask.
HTH
Sundar
08-08-2007 07:19 AM
Actually that's a valid WC mask. That's the beauty of WC masks they are so flexible that you could almost match anything.
.254 indicates it doesn't care about the first 7 bits in the last octet but the last bit (1 bit) has to match always. With an address 172.26.192.(0) the last bit is turned off therefore any address with the last bit turned off i.e any even # 0,2,4,6 etc.. will match this WC mask.
HTH
Sundar
08-08-2007 07:38 AM
You have to understand WC as not reversed subnet mask, but as bit sequence. If you convert the wild card to it's bit value.
Where there is 1, no match is required.
Where there is 0, a match is required.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide