Tools – Wildcard Calculator

IP: 120.21.49.66 Wildcard Mask:111.68.104.197
[WildCard calculations for Cisco Devices, support for others to be added.]
Octet 1
Octet 2
Octet 3
Octet 4
IP 120.21.49.66
01111000
.
00010101
.
00110001
.
01000010
Wildcard Mask 111.68.104.197
01101111
.
01000100
.
01101000
.
11000101
Bit Pattern 0??1???? . 0?010?01 . 0??1?001 . ??000?1?
Networks Matched in [brackets]
(examples)
[16 - 31]
[48 - 63]
[80 - 95]
[112 - 127]
.
[17]
[21]
[81]
[85]
.
[17]
[25]
[49]
[57]
[81]
[89]
[113]
[121]
.
[2 - 3]
[6 - 7]
[66 - 67]
[70 - 71]
[130 - 131]
[134 - 135]
[194 - 195]
[198 - 199]
Entry for Cisco Standard access-list:
ip access-list standard IPV4.AS
permit 16.17.17.2 111.68.104.197
Result Breakdown:
IP & WildCard Octet 1
[120.21.49.66 with WildCard mask 111.68.104.197]
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:(?) 111 0 1 1 0 1 1 1 1
= = = = = = = =
Bit pattern:(?) 0 0 or 1 0 or 1 1 0 or 1 0 or 1 0 or 1 0 or 1

IP & WildCard Octet 2
[120.21.49.66 with WildCard mask 111.68.104.197]
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: 21 0 0 0 1 0 1 0 1
WC:(?) 68 0 1 0 0 0 1 0 0
= = = = = = = =
Bit pattern:(?) 0 0 or 1 0 1 0 0 or 1 0 1

IP & WildCard Octet 3
[120.21.49.66 with WildCard mask 111.68.104.197]
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: 49 0 0 1 1 0 0 0 1
WC:(?) 104 0 1 1 0 1 0 0 0
= = = = = = = =
Bit pattern:(?) 0 0 or 1 0 or 1 1 0 or 1 0 0 1

IP & WildCard Octet 4
[120.21.49.66 with WildCard mask 111.68.104.197]
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: 66 0 1 0 0 0 0 1 0
WC:(?) 197 1 1 0 0 0 1 0 1
= = = = = = = =
Bit pattern:(?) 0 or 1 0 or 1 0 0 0 0 or 1 1 0 or 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 to Richard Cancel reply

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