S1 / 11 MODULE 11 / IPV4 ADDRESSING AND SUBNETTING

Divide the address space.
Plan the subnet.

An IPv4 address is a 32-bit logical address. Prefix lengths and subnet masks divide that address into network and host portions so networks can be sized and routed.

01

Read an IPv4 address and prefix

IPv4 addresses contain 32 bits, commonly written as four decimal octets. The subnet mask or prefix length identifies which bits describe the network and which identify the host. A /24 prefix uses 24 network bits and leaves 8 host bits. Network address, usable host addresses, and broadcast address are determined by the prefix.

SOURCE IMAGESIMG-0882 · IMG-0895
02

Distinguish IPv4 delivery types

Unicast identifies one destination host. Broadcast targets all hosts in a local broadcast domain. Multicast targets a subscribed group; IPv4 multicast addresses are in 224.0.0.0/4 (224.0.0.0–239.255.255.255). Public IPv4 addresses are globally routable when allocated and routed. RFC 1918 private ranges are 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. The 100.64.0.0/10 block is shared address space commonly used for carrier-grade NAT, while 169.254.0.0/16 is link-local/APIPA space. Private addresses are commonly translated at an Internet edge using NAT.

SOURCE IMAGESIMG-0913 · IMG-0901
03

Subnet and size networks

Subnetting borrows host bits to create smaller networks. The source core task starts with a /24 and asks you to calculate smaller equal-size subnets. A /26 contains 64 total addresses and normally 62 usable host addresses; a /27 contains 32 total and 30 usable. VLSM uses different prefix lengths within an address block so each subnet can be sized for its host requirement. Allocate the largest subnet first, then continue with smaller aligned blocks. Calculations using larger parent prefixes such as /21–/23 and multi-size VLSM plans are useful advanced extensions, not a replacement for mastering the source /24 workflow.

SOURCE IMAGESIMG-0898 · IMG-1043 · IMG-1056 · IMG-1037 · IMG-1070
04

Plan the subnetting scheme before assigning addresses

Start by listing the number of required subnets and the usable host count for each one. Decide which networks need private IPv4 space and whether any address block is shared or public. For equal-size subnetting, choose a prefix that creates enough subnets while preserving enough usable hosts in each. For VLSM, allocate the largest host requirement first and use correctly aligned, non-overlapping blocks for smaller networks. Record each network address, prefix/mask, usable range, broadcast address, default gateway, and any DHCP or VLAN address-pool requirement before configuring devices.

PLANNING CHECKLISTSubnet count · Hosts/subnet · Private/public · DHCP pools · VLAN pools · Gateway
05

Calculate subnet count and host capacity

The prefix length is the number of leading network bits in the subnet mask. For example, /26 is 255.255.255.192, or 11111111.11111111.11111111.11000000 in binary. Count the contiguous 1 bits to read the prefix; the remaining 0 bits identify host positions.

For equal-size subnetting, borrowed bits = new prefix length − original prefix length, and the number of subnets is 2borrowed bits. Remaining host bits = 32 − prefix length; total addresses per subnet = 2host bits. For conventional subnets, usable host addresses are total addresses − 2 (network and broadcast). For example, splitting a /24 into /26 borrows 2 bits, producing 4 subnets. Each /26 has 6 host bits, 64 total addresses, and normally 62 usable host addresses. The block size is 64 in the final octet, so the subnet network addresses are .0, .64, .128, and .192.

The subtract-two rule is for conventional IPv4 subnets. Point-to-point /31 links and /32 host routes have special semantics.

CALCULATION RULESBorrowed bits · 2ⁿ subnets · 2ʰ total addresses · Usable hosts
LAB

Work a subnet from its prefix

Task: Divide 192.168.10.0/24 into four equal-sized subnets.

  1. Four subnets require borrowing 2 host bits because 2² = 4. The new prefix is /26.
  2. A /26 has 6 host bits: 2⁶ = 64 total addresses, normally 62 usable host addresses.
  3. The block size is 64 in the last octet. The subnet network addresses are .0, .64, .128, and .192.
  4. For 192.168.10.64/26, the usable range is 192.168.10.65–192.168.10.126 and the broadcast address is 192.168.10.127.

Check alignment: a /26 network address must begin at a multiple of 64 in the final octet. The broadcast address is the last address before the next subnet.

CHECK YOUR UNDERSTANDING

IPv4 Addressing

Practice the key terms, procedures, and troubleshooting decisions from this module.

Start practice →