The calculation
A /30 block is typically a point-to-point link with two usable addresses. With the network 10.0.0.0, the wildcard 0.0.0.3 matches 10.0.0.0 through 10.0.0.3.
Using it in Cisco IOS
! standard ACL access-list 10 permit 10.0.0.0 0.0.0.3 ! named extended ACL ip access-list extended FROM-SITE permit ip 10.0.0.0 0.0.0.3 any ! OSPF router ospf 1 network 10.0.0.0 0.0.0.3 area 0
Junos, Arista EOS, MikroTik and Linux use the prefix form instead: 10.0.0.0/30.
Nearby prefixes
| Prefix | Subnet mask | Wildcard | Addresses |
|---|---|---|---|
| /28 | 255.255.255.240 | 0.0.0.15 | 16 |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 |
Step by step
- /30 mask:
255.255.255.252. - In octet 4, the mask is 252 =
11111100in binary. - Flipping the bits: 11111100 → 00000011 = 3.
- Final wildcard:
0.0.0.3, leaving the 2 host bits free.
Blocks matched from 10.0.0.0
| Block | First address | Last address |
|---|---|---|
| 1 | 10.0.0.0 | 10.0.0.3 |
| 2 | 10.0.0.4 | 10.0.0.7 |
| 3 | 10.0.0.8 | 10.0.0.11 |
In practice
A permit 10.0.0.0 0.0.0.3 line covers 10.0.0.0 to 10.0.0.3. The next block starts at 10.0.0.4: if the range you need goes past that, use a larger wildcard or a second line. To cover twice as much, use the /29 wildcard (0.0.0.7); for half, the /31 wildcard (0.0.0.1).
To try other values, open the Wildcard mask calculator with these numbers already filled in.