SaveMyCert
IPv4 reference

/28 subnet mask (255.255.255.240)

A /28 is the subnet mask 255.255.255.240: 28 network bits and 4 host bits, giving 16 addresses and 14 usable hosts. Its wildcard mask is 0.0.0.15 and its block size is 16.

Subnet mask
255.255.255.240
Wildcard
0.0.0.15
Addresses
16
Usable hosts
14
Block size
16

The /28 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.11110000

28 network bits, 4 host bits.

Every /28 in 192.168.1.0/24

A /24 holds 16 /28 subnets, each starting where the previous one ends.

/28 subnets of 192.168.1.0/24
NetworkFirst hostLast hostBroadcast
192.168.1.0/28192.168.1.1192.168.1.14192.168.1.15
192.168.1.16/28192.168.1.17192.168.1.30192.168.1.31
192.168.1.32/28192.168.1.33192.168.1.46192.168.1.47
192.168.1.48/28192.168.1.49192.168.1.62192.168.1.63
192.168.1.64/28192.168.1.65192.168.1.78192.168.1.79
192.168.1.80/28192.168.1.81192.168.1.94192.168.1.95
192.168.1.96/28192.168.1.97192.168.1.110192.168.1.111
192.168.1.112/28192.168.1.113192.168.1.126192.168.1.127
192.168.1.128/28192.168.1.129192.168.1.142192.168.1.143
192.168.1.144/28192.168.1.145192.168.1.158192.168.1.159
192.168.1.160/28192.168.1.161192.168.1.174192.168.1.175
192.168.1.176/28192.168.1.177192.168.1.190192.168.1.191
192.168.1.192/28192.168.1.193192.168.1.206192.168.1.207
192.168.1.208/28192.168.1.209192.168.1.222192.168.1.223
192.168.1.224/28192.168.1.225192.168.1.238192.168.1.239
192.168.1.240/28192.168.1.241192.168.1.254192.168.1.255

Where a /28 is used

A /28 is the smallest subnet AWS allows in a VPC: 16 addresses, 11 of them usable once AWS reserves five. It is a typical size for a small public subnet that only holds load balancer or NAT gateway interfaces.

On a LAN it gives 14 usable hosts, enough for a small device segment such as printers or management interfaces.

Usable addresses in a /28
WhereUsable addresses
Ordinary network14
AWS VPC subnet (5 reserved)11
Azure subnet (5 reserved)11

Worked example: 192.168.1.77/28

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

  1. /28 means a mask of 255.255.255.240.
  2. The interesting octet is the fourth one, where the mask is 240. Block size = 256 − 240 = 16.
  3. Subnets in that octet start at multiples of 16. 77 falls in the block from 64 to 79.
  4. Network address = 192.168.1.64; broadcast = the next block minus one = 192.168.1.79.
  5. Usable hosts run from the network plus one to the broadcast minus one: 192.168.1.65 to 192.168.1.78, which is 2^4 − 2 = 14 addresses.

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

/28 subnet mask: your questions

The subnet mask for /28 is 255.255.255.240. The prefix counts the 1 bits in the mask: 11111111.11111111.11111111.11110000 has 28 ones. The wildcard mask, used in Cisco ACLs and OSPF, is 0.0.0.15.

Other prefixes