Tools – Wildcard Calculator

IP: 120.152.56.234 Wildcard Mask:91.135.107.44
[WildCard calculations for Cisco Devices, support for others to be added.]
Octet 1
Octet 2
Octet 3
Octet 4
IP 120.152.56.234
01111000
.
10011000
.
00111000
.
11101010
Wildcard Mask 91.135.107.44
01011011
.
10000111
.
01101011
.
00101100
Bit Pattern 0?1??0?? . ?0011??? . 0??1?0?? . 11?0??10
Networks Matched in [brackets]
(examples)
[32 - 35]
[40 - 43]
[48 - 51]
[56 - 59]
[96 - 99]
[104 - 107]
[112 - 115]
[120 - 123]
.
[24 - 31]
[152 - 159]
.
[16 - 19]
[24 - 27]
[48 - 51]
[56 - 59]
[80 - 83]
[88 - 91]
[112 - 115]
[120 - 123]
.
[194]
[198]
[202]
[206]
[226]
[230]
[234]
[238]
Entry for Cisco Standard access-list:
ip access-list standard IPV4.AS
permit 32.24.16.194 91.135.107.44
Result Breakdown:
IP & WildCard Octet 1
[120.152.56.234 with WildCard mask 91.135.107.44]
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: 120 0 1 1 1 1 0 0 0
WC:(?) 91 0 1 0 1 1 0 1 1
= = = = = = = =
Bit pattern:(?) 0 0 or 1 1 0 or 1 0 or 1 0 0 or 1 0 or 1

IP & WildCard Octet 2
[120.152.56.234 with WildCard mask 91.135.107.44]
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: 152 1 0 0 1 1 0 0 0
WC:(?) 135 1 0 0 0 0 1 1 1
= = = = = = = =
Bit pattern:(?) 0 or 1 0 0 1 1 0 or 1 0 or 1 0 or 1

IP & WildCard Octet 3
[120.152.56.234 with WildCard mask 91.135.107.44]
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: 56 0 0 1 1 1 0 0 0
WC:(?) 107 0 1 1 0 1 0 1 1
= = = = = = = =
Bit pattern:(?) 0 0 or 1 0 or 1 1 0 or 1 0 0 or 1 0 or 1

IP & WildCard Octet 4
[120.152.56.234 with WildCard mask 91.135.107.44]
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: 234 1 1 1 0 1 0 1 0
WC:(?) 44 0 0 1 0 1 1 0 0
= = = = = = = =
Bit pattern:(?) 1 1 0 or 1 0 0 or 1 0 or 1 1 0

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 *