taap.digitalnetwork engineering toolkit

What is the wildcard mask for a /26?

Answer
0.0.0.63 wildcard for /26 (255.255.255.192)

A /26 has the subnet mask 255.255.255.192. Subtract it from 255.255.255.255 and you get the wildcard 0.0.0.63: the last 6 bits are "don't care", so it matches 64 consecutive addresses.

wildcard · adjust the values
Telecom pole with many wires against the sky
Telecom pole with many wires against the sky. Photo: T / Unsplash

The calculation

255.255.255.255 − 255.255.255.192 = 0.0.0.63

A /26 block is typically a 62-host segment such as a server or voice VLAN. With the network 10.0.0.0, the wildcard 0.0.0.63 matches 10.0.0.0 through 10.0.0.63.

Using it in Cisco IOS

! standard ACL
access-list 10 permit 10.0.0.0 0.0.0.63

! named extended ACL
ip access-list extended FROM-SITE
 permit ip 10.0.0.0 0.0.0.63 any

! OSPF
router ospf 1
 network 10.0.0.0 0.0.0.63 area 0

Junos, Arista EOS, MikroTik and Linux use the prefix form instead: 10.0.0.0/26.

Nearby prefixes

PrefixSubnet maskWildcardAddresses
/24255.255.255.00.0.0.255256
/25255.255.255.1280.0.0.127128
/26255.255.255.1920.0.0.6364
/27255.255.255.2240.0.0.3132
/28255.255.255.2400.0.0.1516

Step by step

  1. /26 mask: 255.255.255.192.
  2. In octet 4, the mask is 192 = 11000000 in binary.
  3. Flipping the bits: 11000000 → 00111111 = 63.
  4. Final wildcard: 0.0.0.63, leaving the 6 host bits free.

Blocks matched from 10.0.0.0

BlockFirst addressLast address
110.0.0.010.0.0.63
210.0.0.6410.0.0.127
310.0.0.12810.0.0.191

In practice

A permit 10.0.0.0 0.0.0.63 line covers 10.0.0.0 to 10.0.0.63. The next block starts at 10.0.0.64: if the range you need goes past that, use a larger wildcard or a second line. To cover twice as much, use the /25 wildcard (0.0.0.127); for half, the /27 wildcard (0.0.0.31).

To try other values, open the Wildcard mask calculator with these numbers already filled in.

More questions like this

Frequently asked questions

How many addresses does 0.0.0.63 match?

64. The wildcard has 6 one-bits, and 26 = 64.

Is 0.0.0.63 the same as 255.255.255.192?

No. 255.255.255.192 is the subnet mask; 0.0.0.63 is its bitwise inverse. Putting the subnet mask where IOS expects a wildcard matches the wrong addresses.