Step 2 — IP Address Fundamentals

⚠️ Prerequisite Required

This step assumes you're comfortable with binary conversion. If you haven't completed Step 1 – Binary Fundamentals, do that first. Subnetting builds directly on binary understanding.

Before you can subnet, you need to deeply understand how IP addresses work. This isn't just memorization — it's building intuition that will make subnetting feel natural.

Binary Confidence Check

Quick check: Can you convert these without hesitation?

• 192 to binary: ?

• 255 to binary: ?

• 128 to binary: ?

If these took more than 2 seconds each, review Step 1. Binary fluency is non-negotiable for subnetting.

What is an IP Address?

An IP (Internet Protocol) address is a unique identifier assigned to every device on a network. Think of it like a street address for computers.

IPv4 addresses are 32 bits long, written as four decimal numbers separated by dots. Each number represents 8 bits (one octet).

192.168.1.100

The Four Octets

Each IPv4 address has exactly four octets. Each octet is 8 bits, which means each can range from 0 to 255.

OctetDecimalBinary
1st19211000000
2nd16810101000
3rd100000001
4th10001100100

Full binary: 11000000.10101000.00000001.01100100

Binary Conversion (The Key Skill)

Understanding binary is essential for subnetting. Here's the binary place value chart for one octet:

1286432168421
2⁷2⁶2⁵2⁴2⁰

Example: Convert 192 to binary

  1. 192 ≥ 128? Yes → write 1, remainder = 192 - 128 = 64
  2. 64 ≥ 64? Yes → write 1, remainder = 64 - 64 = 0
  3. 0 ≥ 32? No → write 0
  4. 0 ≥ 16? No → write 0
  5. 0 ≥ 8? No → write 0
  6. 0 ≥ 4? No → write 0
  7. 0 ≥ 2? No → write 0
  8. 0 ≥ 1? No → write 0

192 = 11000000

Quick Binary Practice

Apply what you learned in Step 1. Convert each octet to binary.

Convert each octet of 192.168.1.100:

192 → 11000000

168 → 10101000

1 → 00000001

100 → 01100100

If this feels slow or uncertain, you're not ready for subnetting yet. Review Step 1.

Network Portion vs. Host Portion

Every IP address has two parts:

  • Network portion: Identifies which network the device is on (like a street name)
  • Host portion: Identifies the specific device on that network (like a house number)
192.168.1.100
NetworkHost
192.168.1.100

The subnet mask determines where the split occurs. You'll learn this in the next step.

IP Address Classes (Historical Context)

Originally, IP addresses were divided into classes. While we now use CIDR (classless addressing), understanding classes helps explain default subnet masks.

ClassFirst OctetDefault MaskExample
A1–126255.0.0.010.0.0.1
B128–191255.255.0.0172.16.0.1
C192–223255.255.255.0192.168.1.1

Note: 127.x.x.x is reserved for loopback (localhost). Class D (224-239) is multicast. Class E (240-255) is experimental.

Private IP Address Ranges (RFC 1918)

These ranges are reserved for private networks and are not routable on the public internet. You'll see these constantly in enterprise networks.

ClassRangeCIDRCommon Use
A10.0.0.0 – 10.255.255.25510.0.0.0/8Large enterprises
B172.16.0.0 – 172.31.255.255172.16.0.0/12Cloud VPCs
C192.168.0.0 – 192.168.255.255192.168.0.0/16Home/small office

Practice Exercises

Convert these decimal values to binary (answers below):

  1. Convert 255 to binary
  2. Convert 128 to binary
  3. Convert 64 to binary
  4. Convert 224 to binary
  5. Convert 10 to binary
Show Answers
  1. 255 = 11111111
  2. 128 = 10000000
  3. 64 = 01000000
  4. 224 = 11100000
  5. 10 = 00001010

Checkpoint

Before moving on, make sure you can:

  • Convert any decimal (0-255) to 8-bit binary
  • Convert 8-bit binary back to decimal
  • Identify which class an IP address belongs to
  • Recognize private IP address ranges
  • Understand that IPs have network and host portions