IPv4 subnetting: splitting a /24 into 4 parts
Sign in to read this lesson
The prefix (/24, /26) shows how many bits of an IP address belong to the network. Number of hosts = 2^(32 − prefix) − 2. A /26 is a block of 64 addresses, that is 62 hosts.
What you will learn
- An IPv4 address is 32 bits long and has two parts: the network part and the host part.
- The prefix (/24, /26) shows how many bits the network part has. The subnet mask is another way to write the same thing.
- Number of hosts = 2^(32 − prefix) − 2. Two addresses are subtracted: the network address and the broadcast address.
- Quick method: block size = 256 − the last octet of the mask. For /26: 256 − 192 = 64.
- Subnetting splits a big network into smaller parts: for example separate subnets for guests, staff, cameras and POS.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.