/27 subnet mask (255.255.255.224)
A /27 is the subnet mask 255.255.255.224: 27 network bits and 5 host bits, giving 32 addresses and 30 usable hosts. Its wildcard mask is 0.0.0.31 and its block size is 32.
- Subnet mask
- 255.255.255.224
- Wildcard
- 0.0.0.31
- Addresses
- 32
- Usable hosts
- 30
- Block size
- 32
The /27 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.11100000
27 network bits, 5 host bits.
Every /27 in 192.168.1.0/24
A /24 holds 8 /27 subnets, each starting where the previous one ends.
| Network | First host | Last host | Broadcast |
|---|---|---|---|
| 192.168.1.0/27 | 192.168.1.1 | 192.168.1.30 | 192.168.1.31 |
| 192.168.1.32/27 | 192.168.1.33 | 192.168.1.62 | 192.168.1.63 |
| 192.168.1.64/27 | 192.168.1.65 | 192.168.1.94 | 192.168.1.95 |
| 192.168.1.96/27 | 192.168.1.97 | 192.168.1.126 | 192.168.1.127 |
| 192.168.1.128/27 | 192.168.1.129 | 192.168.1.158 | 192.168.1.159 |
| 192.168.1.160/27 | 192.168.1.161 | 192.168.1.190 | 192.168.1.191 |
| 192.168.1.192/27 | 192.168.1.193 | 192.168.1.222 | 192.168.1.223 |
| 192.168.1.224/27 | 192.168.1.225 | 192.168.1.254 | 192.168.1.255 |
Where a /27 is used
A /27 gives eight subnets of 30 usable hosts in a /24, a common size for a small office VLAN or a server segment.
Microsoft recommends a GatewaySubnet of /27 or larger for Azure VPN and ExpressRoute gateways, so a /27 is the usual choice there.
| Where | Usable addresses |
|---|---|
| Ordinary network | 30 |
| AWS VPC subnet (5 reserved) | 27 |
| Azure subnet (5 reserved) | 27 |
Worked example: 192.168.1.77/27
The block-size method, the way you would do it in an exam without a calculator.
- /27 means a mask of 255.255.255.224.
- The interesting octet is the fourth one, where the mask is 224. Block size = 256 − 224 = 32.
- Subnets in that octet start at multiples of 32. 77 falls in the block from 64 to 95.
- Network address = 192.168.1.64; broadcast = the next block minus one = 192.168.1.95.
- Usable hosts run from the network plus one to the broadcast minus one: 192.168.1.65 to 192.168.1.94, which is 2^5 − 2 = 30 addresses.
Try another address in the subnet calculator, or practise without one on the subnetting practice questions.