SaveMyCert
IPv4 reference

/26 subnet mask (255.255.255.192)

A /26 is the subnet mask 255.255.255.192: 26 network bits and 6 host bits, giving 64 addresses and 62 usable hosts. Its wildcard mask is 0.0.0.63 and its block size is 64.

Subnet mask
255.255.255.192
Wildcard
0.0.0.63
Addresses
64
Usable hosts
62
Block size
64

The /26 mask in binary

The prefix is the number of 1 bits at the start of the mask. Ones mark the network part of an address, zeros the host part.

11111111.11111111.11111111.11000000

26 network bits, 6 host bits.

Every /26 in 192.168.1.0/24

A /24 holds 4 /26 subnets, each starting where the previous one ends.

/26 subnets of 192.168.1.0/24
NetworkFirst hostLast hostBroadcast
192.168.1.0/26192.168.1.1192.168.1.62192.168.1.63
192.168.1.64/26192.168.1.65192.168.1.126192.168.1.127
192.168.1.128/26192.168.1.129192.168.1.190192.168.1.191
192.168.1.192/26192.168.1.193192.168.1.254192.168.1.255

Where a /26 is used

A /26 gives four subnets of 62 usable hosts in a /24, starting at .0, .64, .128 and .192.

In Azure, AzureBastionSubnet and AzureFirewallSubnet must be at least a /26, so the size comes up whenever those services are deployed.

Usable addresses in a /26
WhereUsable addresses
Ordinary network62
AWS VPC subnet (5 reserved)59
Azure subnet (5 reserved)59

Worked example: 192.168.1.77/26

The block-size method, the way you would do it in an exam without a calculator.

  1. /26 means a mask of 255.255.255.192.
  2. The interesting octet is the fourth one, where the mask is 192. Block size = 256 − 192 = 64.
  3. Subnets in that octet start at multiples of 64. 77 falls in the block from 64 to 127.
  4. Network address = 192.168.1.64; broadcast = the next block minus one = 192.168.1.127.
  5. Usable hosts run from the network plus one to the broadcast minus one: 192.168.1.65 to 192.168.1.126, which is 2^6 − 2 = 62 addresses.

Try another address in the subnet calculator, or practise without one on the subnetting practice questions.

/26 subnet mask: your questions

The subnet mask for /26 is 255.255.255.192. The prefix counts the 1 bits in the mask: 11111111.11111111.11111111.11000000 has 26 ones. The wildcard mask, used in Cisco ACLs and OSPF, is 0.0.0.63.

Other prefixes