SaveMyCert
IPv4 reference

/25 subnet mask (255.255.255.128)

A /25 is the subnet mask 255.255.255.128: 25 network bits and 7 host bits, giving 128 addresses and 126 usable hosts. Its wildcard mask is 0.0.0.127 and its block size is 128.

Subnet mask
255.255.255.128
Wildcard
0.0.0.127
Addresses
128
Usable hosts
126
Block size
128

The /25 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.10000000

25 network bits, 7 host bits.

Every /25 in 192.168.1.0/24

A /24 holds 2 /25 subnets, each starting where the previous one ends.

/25 subnets of 192.168.1.0/24
NetworkFirst hostLast hostBroadcast
192.168.1.0/25192.168.1.1192.168.1.126192.168.1.127
192.168.1.128/25192.168.1.129192.168.1.254192.168.1.255

Where a /25 is used

A /25 splits a /24 in half: two subnets of 126 usable hosts, starting at .0 and .128.

It is the first prefix where the network no longer ends on an octet boundary, so it is where the block-size method starts to matter.

Usable addresses in a /25
WhereUsable addresses
Ordinary network126
AWS VPC subnet (5 reserved)123
Azure subnet (5 reserved)123

Worked example: 192.168.1.77/25

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

  1. /25 means a mask of 255.255.255.128.
  2. The interesting octet is the fourth one, where the mask is 128. Block size = 256 − 128 = 128.
  3. Subnets in that octet start at multiples of 128. 77 falls in the block from 0 to 127.
  4. Network address = 192.168.1.0; 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.1 to 192.168.1.126, which is 2^7 − 2 = 126 addresses.

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

/25 subnet mask: your questions

The subnet mask for /25 is 255.255.255.128. The prefix counts the 1 bits in the mask: 11111111.11111111.11111111.10000000 has 25 ones. The wildcard mask, used in Cisco ACLs and OSPF, is 0.0.0.127.

Other prefixes