SaveMyCert
IPv4 reference

/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.

/27 subnets of 192.168.1.0/24
NetworkFirst hostLast hostBroadcast
192.168.1.0/27192.168.1.1192.168.1.30192.168.1.31
192.168.1.32/27192.168.1.33192.168.1.62192.168.1.63
192.168.1.64/27192.168.1.65192.168.1.94192.168.1.95
192.168.1.96/27192.168.1.97192.168.1.126192.168.1.127
192.168.1.128/27192.168.1.129192.168.1.158192.168.1.159
192.168.1.160/27192.168.1.161192.168.1.190192.168.1.191
192.168.1.192/27192.168.1.193192.168.1.222192.168.1.223
192.168.1.224/27192.168.1.225192.168.1.254192.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.

Usable addresses in a /27
WhereUsable addresses
Ordinary network30
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.

  1. /27 means a mask of 255.255.255.224.
  2. The interesting octet is the fourth one, where the mask is 224. Block size = 256 − 224 = 32.
  3. Subnets in that octet start at multiples of 32. 77 falls in the block from 64 to 95.
  4. Network address = 192.168.1.64; broadcast = the next block minus one = 192.168.1.95.
  5. 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.

/27 subnet mask: your questions

The subnet mask for /27 is 255.255.255.224. The prefix counts the 1 bits in the mask: 11111111.11111111.11111111.11100000 has 27 ones. The wildcard mask, used in Cisco ACLs and OSPF, is 0.0.0.31.

Other prefixes