The Structure of an IPv4 Address
An IPv4 Address is a 32-bit number, conventionally written as four decimal numbers separated by dots (called Dotted-Decimal Notation), with each number representing one 8-bit group called an Octet.
Example address: 192.168.1.10
Binary breakdown:
192 .168 .1 .10
11000000 .10101000 .00000001 .00001010
Each octet ranges from 0 to 255,
since 8 bits can represent 2^8 = 256 distinct valuesEvery IPv4 address logically splits into two parts: a Network Portion, identifying which network the device belongs to, and a Host Portion, identifying the specific device within that network. Where exactly this split occurs is determined by the subnet mask, discussed below.
Historical Address Classes
IPv4 addressing originally used a rigid Classful system, dividing the address space into classes with fixed network/host boundaries. While largely obsolete for modern network design, this classification still influences default behaviors and terminology used throughout networking today.
Class A: 1.0.0.0 - 126.255.255.255 (default mask /8)
Class B: 128.0.0.0 - 191.255.255.255 (default mask /16)
Class C: 192.0.0.0 - 223.255.255.255 (default mask /24)
Class D: 224.0.0.0 - 239.255.255.255 (multicast, not for hosts)
Class E: 240.0.0.0 - 255.255.255.255 (reserved, experimental)Modern networks almost universally use Classless addressing instead, discussed later in this series regarding VLSM and CIDR, which allows the network/host boundary to fall anywhere rather than being fixed by class — but understanding the classful ranges remains useful for recognizing default behaviors in older configurations and certain protocol defaults.
The Subnet Mask: Defining Network and Host Boundaries
A Subnet Mask is a 32-bit value that marks which bits of an IP address belong to the network portion (represented by binary 1s) and which belong to the host portion (represented by binary 0s).
Address: 192.168.1.10
Subnet Mask: 255.255.255.0
Binary mask: 11111111.11111111.11111111.00000000
The first 24 bits (three full octets) are network bits,
the last 8 bits are host bits
This is commonly written in CIDR notation as /24,
indicating 24 network bitsPerforming a bitwise AND between an address and its subnet mask reveals the Network Address — the address representing the network itself, not any specific host on it.
192.168.1.10 AND 255.255.255.0
= 192.168.1.0 (the network address)
This means devices with addresses 192.168.1.1
through 192.168.1.254 all belong to the same
192.168.1.0/24 networkSpecial Addresses Within Every Subnet
Within any subnet, two addresses are reserved and cannot be assigned to a host device.
For the 192.168.1.0/24 network:
Network Address: 192.168.1.0 (all host bits = 0)
identifies the network itself
Broadcast Address: 192.168.1.255 (all host bits = 1)
reaches every device on that subnet
Usable host range: 192.168.1.1 - 192.168.1.254Sending a packet to the broadcast address delivers it to every device on that local subnet simultaneously — a mechanism used by protocols like ARP and DHCP, which require reaching all devices before a specific unicast address is even known.
Configuring and Verifying IP Addressing on a Cisco Device
Router(config)# interface gigabitethernet 0/0
Router(config-if)# ip address 192.168.1.1 255.255.255.0
Router(config-if)# no shutdown
Router# show ip interface brief
Interface IP-Address Status Protocol
GigabitEthernet0/0 192.168.1.1 up up
GigabitEthernet0/1 unassigned down downshow ip interface brief is one of the most frequently used verification commands in daily operations, providing an immediate summary of which interfaces have addresses assigned and whether they are operationally up — the first command most administrators run when checking a device's basic connectivity status.
Private Versus Public Addresses
Certain address ranges are reserved by standard for Private use within internal networks, never routed across the public internet directly.
Private address ranges (RFC 1918):
10.0.0.0 - 10.255.255.255 (10.0.0.0/8)
172.16.0.0 - 172.31.255.255 (172.16.0.0/12)
192.168.0.0 - 192.168.255.255 (192.168.0.0/16)These ranges are used extensively inside homes and enterprises specifically because their limited global supply of public IPv4 addresses made reusing the same private ranges across countless separate networks necessary — a device using a private address relies on Network Address Translation, covered later in this series, to communicate with the public internet.
Why IPv4 Addressing Fundamentals Underlie Everything That Follows
Every subnetting calculation, routing protocol, and access control list covered later in this series operates directly on the network and host address structure introduced here. Fluently converting between dotted-decimal and binary representations, and immediately recognizing which addresses belong to the same subnet, is a foundational skill that every subsequent networking topic assumes as a prerequisite.