LOGBOOK

HELP

1 / 27
Other keys: showSpace: good1-4: rate0: skip5: flag6: invert

Question

What are the two parts of an IPv4 address and how does the subnet mask determine them?

Answer

An IPv4 address has a network portion and a host portion; the subnet mask marks which bits are which — 1s mark network bits, 0s mark host bits.

Subnet mask splits an IPv4 address into network and host portions

* The mask's 1-bits mark the network portion, its 0-bits the host portion. *

IPv4 Address Structure:

Part Description
Network portion Identifies the network; same for all devices on that network
Host portion Identifies the specific device on that network

The subnet mask determines which bits belong to which portion:

  • Subnet mask bits set to 1 = Network portion
  • Subnet mask bits set to 0 = Host portion

Example:

  • IP: 192.168.10.10
  • Subnet mask: 255.255.255.0
  • Network portion: 192.168.10 (first 24 bits)
  • Host portion: .10 (last 8 bits)

Key insight: The subnet mask is essential - without it, you cannot determine which portion is network vs host.

Go deeper:

The concept of subnetting the IPv4 address space 200.100.10.0/24, which contains 256 addresses, into two smaller address spaces, namely 200.100.10.0/25 and 200.100.10.128/25 with 128 addresses each
The concept of subnetting the IPv4 address space 200.100.10.0/24, which contains 256 addresses, into two smaller address spaces, namely 200.100.10.0/25 and 200.100.10.128/25 with 128 addresses each
Michel Bakni · CC BY-SA 4.0 · Wikimedia Commons
or press any other key