IPv4 Subnetting Explained Step-by-Step

Nerd Cafe | نرد کافه

1. What is IPv4?

IPv4 address = 32 bits = 4 octets

Example:

192.168.10.25

Each octet:

192 . 168 . 10 . 25

Binary form:

11000000.10101000.00001010.00011001

IPv4 consists of two parts:

  • Network portion → identifies the network

  • Host portion → identifies devices

2. What is a Subnet Mask?

Subnet mask tells:

Which part = network Which part = host

Example:

255.255.255.0

Binary:

Meaning:

  • First 24 bits → Network

  • Last 8 bits → Hosts

CIDR notation:

3. Important Values You Must Calculate

From IP + Subnet Mask you find:

  • Network IP

  • Broadcast IP

  • First IP

  • Last IP

  • Number of hosts

4. Practical Example

Given:

Step 1 — Find Network IP

Formula:

Binary:

IP:

Mask:

Result:

Decimal:

Network IP = 192.168.10.0

Step 2 — Find Broadcast IP

Broadcast IP =

All host bits = 1

Host bits = last 8 bits

Binary:

Broadcast:

Broadcast IP = 192.168.10.255

Step 3 — First Usable IP

Formula:

Result:

First IP = 192.168.10.1

Step 4 — Last Usable IP

Formula:

Result:

Last IP = 192.168.10.254

Step 5 — Number of Available IPs

Formula:

Host bits:

Calculation:

Available IPs = 254

Final Results Table

Item
Value

IP Address

192.168.10.25

Subnet Mask

255.255.255.0

CIDR

/24

Network IP

192.168.10.0

Broadcast IP

192.168.10.255

First IP

192.168.10.1

Last IP

192.168.10.254

Hosts

254

💖 Support Our Work

If you find this post helpful and would like to support my work, you can send a donation via TRC-20 (USDT). Your contributions help us keep creating and sharing more valuable content.

circle-check

Thank you for your generosity! 🙏

Keywords

IPv4, subnetting, IP addressing, network address, subnet mask, CIDR notation, broadcast address, host address, first usable IP, last usable IP, available hosts, binary subnetting, IP calculation, network engineering, TCP/IP, IP ranges, subnet calculator, IP networking fundamentals, CCNA subnetting, computer networking basics, nerd cafe , نرد کافه

Channel Overview

🌐 Website: www.nerd-cafe.irarrow-up-right

📺 YouTube: @nerd-cafearrow-up-right

🎥 Aparat: nerd_cafearrow-up-right

📌 Pinterest: nerd_cafearrow-up-right

📱 Telegram: @nerd_cafearrow-up-right

📝 Blog: Nerd Café on Virgoolarrow-up-right

💻 GitHub: nerd-cafearrow-up-right

Last updated