- by x32x01 ||
Ever wondered how a computer knows which network it belongs to and how it identifies devices within that network? The answer lies in the Network Part and Host Part of an IP address, defined by the Subnet Mask or Prefix Length.
Let's break down the IP address
However, two addresses are reserved:
That's 254 devices that can normally use this subnet.
Changing the Prefix Length changes the subnet size and the number of available host addresses.
Understanding subnetting is essential for CCNA studies, network troubleshooting, IP address planning, and network design.
Let's break down the IP address
192.168.1.0/24 with a simple example.🌐 1. Network Part and Host Part
An IP address is divided into two parts:- Network Part: Identifies the network.
- Host Part: Identifies a device within that network.
192.168.1.0/24, the first 24 bits represent the network, while the remaining 8 bits are available for host addresses.📌 2. What Does /24 Mean?
The/24 Prefix Length means that 24 bits are reserved for the network, leaving 8 bits for hosts.| Property | Value |
|---|---|
| IP Address | 192.168.1.0/24 |
| Subnet Mask | 255.255.255.0 |
| Network Bits | 24 bits |
| Host Bits | 8 bits |
| Network Address | 192.168.1.0 |
| Broadcast Address | 192.168.1.255 |
🧮 3. How Many Usable IP Addresses?
With 8 host bits, we can calculate the total number of IP addresses: Code:
2^8 = 256 IP addresses - Network Address: 192.168.1.0
- Broadcast Address: 192.168.1.255
Code:
256 - 2 = 254 Usable Hosts 💡 Why Does Prefix Length Matter?
The Prefix Length determines how large a network is, how many IP addresses it contains, and how IP addresses are divided between the network and hosts.Changing the Prefix Length changes the subnet size and the number of available host addresses.
Understanding subnetting is essential for CCNA studies, network troubleshooting, IP address planning, and network design.