Tools – Wildcard Calculator

IP: 22.252.51.51 Wildcard Mask:101.73.185.136
[WildCard calculations for Cisco Devices, support for others to be added.]
Octet 1
Octet 2
Octet 3
Octet 4
IP 22.252.51.51
00010110
.
11111100
.
00110011
.
00110011
Wildcard Mask 101.73.185.136
01100101
.
01001001
.
10111001
.
10001000
Bit Pattern 0??10?1? . 1?11?10? . ?0???01? . ?011?011
Networks Matched in [brackets]
(examples)
[18 - 19]
[22 - 23]
[50 - 51]
[54 - 55]
[82 - 83]
[86 - 87]
[114 - 115]
[118 - 119]
.
[180 - 181]
[188 - 189]
[244 - 245]
[252 - 253]
.
[2 - 3]
[10 - 11]
[18 - 19]
[26 - 27]
[34 - 35]
[42 - 43]
[50 - 51]
[58 - 59]
[130 - 131]
[138 - 139]
[146 - 147]
[154 - 155]
[162 - 163]
[170 - 171]
[178 - 179]
[186 - 187]
.
[51]
[59]
[179]
[187]
Entry for Cisco Standard access-list:
ip access-list standard IPV4.AS
permit 18.180.2.51 101.73.185.136
Result Breakdown:
IP & WildCard Octet 1
[22.252.51.51 with WildCard mask 101.73.185.136]
Octet bits value/pos 128
bit 8
64
bit 7
32
bit 6
16
bit 5
8
bit 4
4
bit 3
2
bit 2
1
bit 1
IP: 22 0 0 0 1 0 1 1 0
WC:(?) 101 0 1 1 0 0 1 0 1
= = = = = = = =
Bit pattern:(?) 0 0 or 1 0 or 1 1 0 0 or 1 1 0 or 1

IP & WildCard Octet 2
[22.252.51.51 with WildCard mask 101.73.185.136]
Octet bits value/pos 128
bit 8
64
bit 7
32
bit 6
16
bit 5
8
bit 4
4
bit 3
2
bit 2
1
bit 1
IP: 252 1 1 1 1 1 1 0 0
WC:(?) 73 0 1 0 0 1 0 0 1
= = = = = = = =
Bit pattern:(?) 1 0 or 1 1 1 0 or 1 1 0 0 or 1

IP & WildCard Octet 3
[22.252.51.51 with WildCard mask 101.73.185.136]
Octet bits value/pos 128
bit 8
64
bit 7
32
bit 6
16
bit 5
8
bit 4
4
bit 3
2
bit 2
1
bit 1
IP: 51 0 0 1 1 0 0 1 1
WC:(?) 185 1 0 1 1 1 0 0 1
= = = = = = = =
Bit pattern:(?) 0 or 1 0 0 or 1 0 or 1 0 or 1 0 1 0 or 1

IP & WildCard Octet 4
[22.252.51.51 with WildCard mask 101.73.185.136]
Octet bits value/pos: 128
bit 8
64
bit 7
32
bit 6
16
bit 5
8
bit 4
4
bit 3
2
bit 2
1
bit 1
IP: 51 0 0 1 1 0 0 1 1
WC:(?) 136 1 0 0 0 1 0 0 0
= = = = = = = =
Bit pattern:(?) 0 or 1 0 1 1 0 or 1 0 1 1

Use the calculators at your own risk.
version:
V0.4

4 thoughts on “Tools – Wildcard Calculator”

  1. Hey, I hope someone will find this Calculator useful, it was mostly aimed at wildcard masks for Cisco equipment. I will make a setting to change it to work for Juniper devices as well.
    Any suggestions & Feedback will be more than welcome.

  2. Excellent tool, thank you very much! Please keep this active as its very useful, you must get loads of hits as not many sites do proper wild card calculations. This works perfectly!

Leave a Reply

Your email address will not be published. Required fields are marked *