The calculation
A /18 block is typically a quarter of a /16, common when a site block is split into four functional zones. With the network 10.0.0.0, the wildcard 0.0.63.255 matches 10.0.0.0 through 10.0.63.255.
Using it in Cisco IOS
! standard ACL access-list 10 permit 10.0.0.0 0.0.63.255 ! named extended ACL ip access-list extended FROM-SITE permit ip 10.0.0.0 0.0.63.255 any ! OSPF router ospf 1 network 10.0.0.0 0.0.63.255 area 0
Junos, Arista EOS, MikroTik and Linux use the prefix form instead: 10.0.0.0/18.
Nearby prefixes
| Prefix | Subnet mask | Wildcard | Addresses |
|---|---|---|---|
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,768 |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,384 |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,192 |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 |
Step by step
- /18 mask:
255.255.192.0. - In octet 3, the mask is 192 =
11000000in binary. - Flipping the bits: 11000000 → 00111111 = 63.
- Final wildcard:
0.0.63.255, leaving the 14 host bits free.
Blocks matched from 10.0.0.0
| Block | First address | Last address |
|---|---|---|
| 1 | 10.0.0.0 | 10.0.63.255 |
| 2 | 10.0.64.0 | 10.0.127.255 |
| 3 | 10.0.128.0 | 10.0.191.255 |
In practice
A permit 10.0.0.0 0.0.63.255 line covers 10.0.0.0 to 10.0.63.255. The next block starts at 10.0.64.0: if the range you need goes past that, use a larger wildcard or a second line. To cover twice as much, use the /17 wildcard (0.0.127.255); for half, the /19 wildcard (0.0.31.255).
To try other values, open the Wildcard mask calculator with these numbers already filled in.