Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Wildcard mask question

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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Wildcard mask question

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

2 REPLIES

Re: Wildcard mask question

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

Silver

Re: Wildcard mask question

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.

117
Views
10
Helpful
2
Replies