Tools – Wildcard Calculator

IP: 45.240.126.131 Wildcard Mask:59.95.247.154
[WildCard calculations for Cisco Devices, support for others to be added.]
Octet 1
Octet 2
Octet 3
Octet 4
IP 45.240.126.131
00101101
.
11110000
.
01111110
.
10000011
Wildcard Mask 59.95.247.154
00111011
.
01011111
.
11110111
.
10011010
Bit Pattern 00???1?? . 1?1????? . ????1??? . ?00??0?1
Networks Matched in [brackets]
(examples)
[4 - 7]
[12 - 15]
[20 - 23]
[28 - 31]
[36 - 39]
[44 - 47]
[52 - 55]
[60 - 63]
.
[160 - 191]
[224 - 255]
.
[8 - 15]
[24 - 31]
[40 - 47]
[56 - 63]
[72 - 79]
[88 - 95]
[104 - 111]
[120 - 127]
[136 - 143]
[152 - 159]
[168 - 175]
[184 - 191]
[200 - 207]
[216 - 223]
[232 - 239]
[248 - 255]
.
[1]
[3]
[9]
[11]
[17]
[19]
[25]
[27]
[129]
[131]
[137]
[139]
[145]
[147]
[153]
[155]
Entry for Cisco Standard access-list:
ip access-list standard IPV4.AS
permit 4.160.8.1 59.95.247.154
Result Breakdown:
IP & WildCard Octet 1
[45.240.126.131 with WildCard mask 59.95.247.154]
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: 45 0 0 1 0 1 1 0 1
WC:(?) 59 0 0 1 1 1 0 1 1
= = = = = = = =
Bit pattern:(?) 0 0 0 or 1 0 or 1 0 or 1 1 0 or 1 0 or 1

IP & WildCard Octet 2
[45.240.126.131 with WildCard mask 59.95.247.154]
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: 240 1 1 1 1 0 0 0 0
WC:(?) 95 0 1 0 1 1 1 1 1
= = = = = = = =
Bit pattern:(?) 1 0 or 1 1 0 or 1 0 or 1 0 or 1 0 or 1 0 or 1

IP & WildCard Octet 3
[45.240.126.131 with WildCard mask 59.95.247.154]
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: 126 0 1 1 1 1 1 1 0
WC:(?) 247 1 1 1 1 0 1 1 1
= = = = = = = =
Bit pattern:(?) 0 or 1 0 or 1 0 or 1 0 or 1 1 0 or 1 0 or 1 0 or 1

IP & WildCard Octet 4
[45.240.126.131 with WildCard mask 59.95.247.154]
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: 131 1 0 0 0 0 0 1 1
WC:(?) 154 1 0 0 1 1 0 1 0
= = = = = = = =
Bit pattern:(?) 0 or 1 0 0 0 or 1 0 or 1 0 0 or 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 *