/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.
| Network | First host | Last host | Broadcast |
|---|---|---|---|
| 192.168.1.0/26 | 192.168.1.1 | 192.168.1.62 | 192.168.1.63 |
| 192.168.1.64/26 | 192.168.1.65 | 192.168.1.126 | 192.168.1.127 |
| 192.168.1.128/26 | 192.168.1.129 | 192.168.1.190 | 192.168.1.191 |
| 192.168.1.192/26 | 192.168.1.193 | 192.168.1.254 | 192.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.
| Where | Usable addresses |
|---|---|
| Ordinary network | 62 |
| 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.
- /26 means a mask of 255.255.255.192.
- The interesting octet is the fourth one, where the mask is 192. Block size = 256 − 192 = 64.
- Subnets in that octet start at multiples of 64. 77 falls in the block from 64 to 127.
- Network address = 192.168.1.64; broadcast = the next block minus one = 192.168.1.127.
- 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.