The calculation
A /27 block is typically a 30-host segment such as a management or printer VLAN. With the network 10.0.0.0, the wildcard 0.0.0.31 matches 10.0.0.0 through 10.0.0.31.
Using it in Cisco IOS
! standard ACL access-list 10 permit 10.0.0.0 0.0.0.31 ! named extended ACL ip access-list extended FROM-SITE permit ip 10.0.0.0 0.0.0.31 any ! OSPF router ospf 1 network 10.0.0.0 0.0.0.31 area 0
Junos, Arista EOS, MikroTik and Linux use the prefix form instead: 10.0.0.0/27.
Nearby prefixes
| Prefix | Subnet mask | Wildcard | Addresses |
|---|---|---|---|
| /25 | 255.255.255.128 | 0.0.0.127 | 128 |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 |
Step by step
- /27 mask:
255.255.255.224. - In octet 4, the mask is 224 =
11100000in binary. - Flipping the bits: 11100000 → 00011111 = 31.
- Final wildcard:
0.0.0.31, leaving the 5 host bits free.
Blocks matched from 10.0.0.0
| Block | First address | Last address |
|---|---|---|
| 1 | 10.0.0.0 | 10.0.0.31 |
| 2 | 10.0.0.32 | 10.0.0.63 |
| 3 | 10.0.0.64 | 10.0.0.95 |
In practice
A permit 10.0.0.0 0.0.0.31 line covers 10.0.0.0 to 10.0.0.31. The next block starts at 10.0.0.32: if the range you need goes past that, use a larger wildcard or a second line. To cover twice as much, use the /26 wildcard (0.0.0.63); for half, the /28 wildcard (0.0.0.15).
To try other values, open the Wildcard mask calculator with these numbers already filled in.